I have a textbox asp.net server control. I am modifying the value of textbox from javascript i want to detect when the textbox text is changed. I tried onchange event which gets called on lost foucs when the text changes. But in my case i an changing text from Javascript. how can i achieve this?
Share
Updating the
valueproperty won’t trigger the change event. The change event is triggered by the user.You can either write a function which changes the value and does whatever else you need to do…
…or poll the
textarea‘s value……or explicitly call the
onchange()event yourself.(Assuming you set the event up with
onchangeproperty.)The workarounds are not terribly great solutions. Either way, you need to do some intervention to trigger extra code when updating a
textarea‘svalueproperty.