jquery input detect value change
<p>I downloaded a calendar from the web. This one: <a href="http://www.codeanddesign-studio.com/wp-content/uploads/2011/03/Date-Range-Picker.gif" rel="nofollow">http://www.codeanddesign-studio.com/wp-content/uploads/2011/03/Date-Range-Picker.gif</a></p>

<p>Calendar works great, now I want to check everytime that the input box change value, user has only 2 options type the date or select the date from the calendar.</p>

<p>I can detect everytime user type something doing this:</p>

<pre><code>$(function(){
    $('#inputA').daterangepicker().bind('change',function() {
       valA=$(this).val() ;
    });
});
</code></pre>

<p>But when user select a date from the calendar doesn't detect the change.
I was thinking in using a setInterval and check the input every X time not sure how to do that or if that is the right solution. What are your recommendations? </p>
