开发者

.text() on change jquery

<td><span id="v">77483.2231</span></td>

When the #v value changes I want to get an pop-up alert

$('#v').change(function() {
    alert("ok");
});

That's my code, its not working tho开发者_运维技巧ugh, what could be wrong?

Thanks

Jean


Sorry, .change() only works with form elements

This event is limited to elements, boxes and elements.

From jQuery Docs

Either do your code where you change the span text elsewhere in the script or set up some kind of listener to watch and see if it changes?

Further explanation of what you're trying to do (and why) would help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜