I have the following HTML
<a title="Prev" data-event="click" data-handler="prev" class="ui-datepicker-prev ui-corner-all">
<span class="ui-icon ui-icon-circle-triangle-w">Prev</span>
</a>
I need to change 'Prev' once click on span using jquery
this my code
$(".ui-icon.ui-icon-circle-triangle-w").click(function(){
$(".ui-icon.ui-icon-circle-triangle-w").html('«');
});
but it dows not work, Why?
Pingback: cnblogs: jquery 动态生成html后click事件不触发原因 – PHP高级工程师 | 易站|工作室
不懂啊。。有没那种在线生成的啊。