I have a button which runs a long running function when it\'s clicked. Now, while the function is running, I want to change the button text, but I\'m having problems in some
Some browsers don't handle onclick html attribute good. It's better to use that event on js object. Like this:
onclick
js
do some work
I made a fiddle with working example http://jsfiddle.net/BZWbH/2/