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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -