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