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

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -