detecting textbox change when changing the content programmatically 
<p>I have a textbox that's linked to a jquery event handler like this:</p>

<pre><code>$('#SomeDiv').on({

   mouseenter: ....
   mouseleave: ....
   blur: ....
   keyup: function() { HandlerForKeyUp($(this)); } ,
   change: function() { HandlerForKeyUp($(this)); } 

}, '.MyTextBoxes');
</code></pre>

<p>Basically, <code>HandlerForKeyUp</code> is a function that shows a counter of the number of letters in the textbox. It works fine when the user is typing.</p>

<p>However, if I write this:</p>

<pre><code>$('#SomeTextBox').val(SomeValue);
</code></pre>

<p>the HandlerForKeyUp function doesn't trigger, even thought I have the <code>change</code> event mapped out in the <code>.on</code> handler and SomeTextBox is of class <code>MyTextBoxes</code> and reacts to all other events. Basically, if the user types the counter works but if I set the value of the textbox at runtime the counter function doesn't trigger.</p>

<p>Any idea on how I could change this?</p>

<p>Thanks for your suggestions.</p>
