.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.
精彩评论