Converting jQuery live to on with find -


how convert use jquery .on .live:

    var $elementhelper = $('.inline_docxdiv [class^="element_helper"]');  $elementhelper.find('.display-explanation').live('click',(function() {      //code here      })); 

i tried , didn't work:

    var $elementhelper = $('.inline_docxdiv [class^="element_helper"]');  $(document).on('click', $elementhelper.find('.display-explanation'), function () {      //code here      }); 

try

$(document).on('click', '.inline_docxdiv [class^="element_helper"] .display-explanation', function () {      //code here  }); 

Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -