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
Post a Comment