jquery - How to regex replace live() function to on() function -


i know regex used in order change

$(".delete_package").live("click", function() { 

into

$("body").on("click", ".delete_package", function() { 

any appreciated :)

i don't know phpdesigner, try replace with:

regex: \$\((["'][^"']+["'])\)\.live\((["'][^"']+["'])

replace: $(document.body).on($2, $1

some regex engines use \ character backreferences, $1 \1.


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" -