Hi,

I wanna monitoring if there any text element changed. but the jQuery
change function could fired only when this element gained focus. It
doesnt work if we use .val() to change it, nd here is my example:

<script type='text/javascript'>
        $(document).ready(function(){
                changed = false;
                $("inp...@type='text']").change(function(){
                        changed = true;
                });
                $("input#fill").click(function(){
                        $("inp...@type='text']").val(Math.random());
                });
                $("input#send").click(function(){
                        alert(changed);
                });
        });
</script>
<input id="fill" type="button" value="ChangeIt"/>
<input id="send" type="button" value="Go"/>
<input type="text"/>

During this, you can only get a false if u just click 'ChangeIt'. So,
is there other way to let me catch that event?

thx,
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to