I have an input field which is being set to readonly by html attribute readonly I am inserting text into that field using jQuery .html() method:
<input type="text" id="myField" readonly="readonly" />
now I have a function myFunction() and I want it to be called when ever the text is being inserted to that field by jQuery.
.val()function to assign values to input field. use.onchangefunction to fire the event when the value is changedif($('#myField').val() !==''){myFunction(); }