Hello Everyone,

I was just using jQuery 1.3.1 when I came across an issue in IE7. When
I click the button the value for the button will be set to "ON" when
using IE7 but it works as  expected in FF3:

Expected result: Value on hidden field should be set to "ON" when the
button is clicked

Wrong result: The value for the button changed to "ON" when the button
is clicked in IE7

Sample Code:

<form>
        <input type="hidden" name="button" value="" />
        <input type="button" id="button" value = "Button" />
</form>
<script type="text/javascript">
        $(function() {
                $('#button').click(function(){
                        $("form input[name='button']").val('ON');
                })
        });
</script>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to