Skip to main content
1 of 2

specific div elem for click event within view.when/view.on

view.when(function(){
    view.on("click", function () { doSomething = !doSomething;});      
});

The above works as a global click event. HOWEVER, I am trying to specify a specific div elem not a global elem. i.e. The logic I'd like:

view.when(function(){
    view.on("click", #myDivElm function () { doSomething = !doSomething;});        
});