问一下jquery有关问题!有经验的来
问一下jquery问题!有经验的来
动态通过addclass添加的类,不能触发jquery事件。


不能来回切换。高手解答下
------解决方案--------------------
绑定用live
动态通过addclass添加的类,不能触发jquery事件。
$(function () { $(".play").click(function () { $(this).removeClass("play").addClass("stop"); }); });
$(function () { $(".stop").click(function () { $(this).removeClass("stop").addClass("play"); }); });
不能来回切换。高手解答下
jQuery
------解决方案--------------------
绑定用live