Skip to main content
2 of 2
title case
Vince
  • 20.3k
  • 16
  • 48
  • 65

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;});        
});