I\'m using jQuery and I want to show some calculation in a span (called span1) and I want when text of span1 changed do some calculation on it\'s v
span1
Found the solution here
Lets say you have span1 as my text text change events can be captured with:
my text
$(document).ready(function(){ $("#span1").on('DOMSubtreeModified',function(){ // text change handler }); });