jquery - Regular expression to change function into another function in netbeans -
the project working wants upgrade jquery 1.6.4 1.9.1...who can use regular expression change:
"$(".btnprint").live("click", function() {"
into
"$('body').delegate(".btnprint", "click", function() {"
with netbeans...
don't use .delegate
either. use .on
.
/\$\((["'])(.*?)\1)\.live\((["'])(.*?)\3/$("body").on("\2", "\4"
Comments
Post a Comment