Govind Samrow Govind Samrow - 3 years ago 104
HTML Question

Trigger for span text/html on changed

Is there any event for

tag text/html change ?


<span class="user-location"> </span>

$('.user-location').change(function () {
//Not working

Thanks in advance!

Answer Source

you can use DOMSubtreeModified to track changes on your span element i.e(if text of your span element changes dynamically ).


check out the followinf link,js,output

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download