Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Backbon events In View

   events: {'click button': 'delegateFunc'},  
              delegateFunc: function () {  
                 this.remove();     
                 document.write("JavaTpoint: A solution of all technology.....");  
              },  
              
   /*'eventname selector' : function name*/
                /*different selectors need a separate :, even for the same event */
                /*different events also need a separate :, even for the same selector */
 
PREVIOUS NEXT
Tagged: #Backbon #events #In #View
ADD COMMENT
Topic
Name
9+5 =