this is my html page
<script>
function set()
{
document.getElementById("txt").value++;
}
</script>
<input id="txt" type="text" onchange="javascript:alert('txt changed');" value="0">
<br/>
<input type="button" onclick="set()" value="Set Data"/>
when i press the button, the text box value is changing, and onchange even is not firing but when i enter value manually in the textbox, it is firing the onchange.
all i want is to call a javascript function when data is changed in the textbox when a button is clicked
please help?