jquery .change not triggered in ie when using .val in a .live('keyup', function()
<p>I'm trying to do an input that only accept digit. I can have some dynamic input so I use the <code>.live</code> function.</p>

<p>On my <code>.live('keyup')</code> function I'm adding some "," which depends of the input length.
Here's a part of my code on an input (not dynamic):</p>

<pre><code> $(document).ready(function(){
      $('#test').change(function() {
           alert('trigger change');
      });
 });


 $('#test').live('keyup', function() {
    var realDotPos = $(this).val().indexOf('.');
    var inputValue = '';
    var inputDecimals = '';
    var value = '';
    var length = 0;
    var cptMod = 0;
    var cptVirgule = 0;

    if (realDotPos == -1){
        inputValue = $(this).val().replace(/,/g, '');
    } else{
        inputValue = $(this).val().substring(0,realDotPos).replace(/,/g, '');
        inputDecimals = $(this).val().substring(realDotPos);
    }

    length = inputValue.length;
    if (length &gt; 3){
        for(i=length-1; i&gt;=0; --i){
            if ((cptMod != 0) &amp;&amp; (cptMod % 3 == 0)){
                value += ',' + inputValue[i];
                ++cptVirgule;
            } else{
                value += inputValue[i];
            }
            ++cptMod;
        }
        value = value.split('').reverse().join('');
        $(this).val(value + inputDecimals);

    } else{
        $(this).val(inputValue + inputDecimals);
    }

});
</code></pre>

<p>The problem with this is that in ie, the <code>.change</code> function is not triggered when i click out of the input. FF or chrome works fine. If i remove the line <code>$(this).val(inputValue + inputDecimals);</code> the trigger works. What's wrong?</p>
