Newly created elements cannot be bound by traditional methods, and live methods are required.
example:
$('.rule').live('mouseover', function () { $(this).addClass("cancelable");The above element binding event that implements dynamic creation of js is all the content shared by the editor. I hope it can give you a reference and I hope you can support Wulin.com more.