Skip to main content

Bug Tracker

Side navigation

#4020 closed bug (fixed)

Opened January 29, 2009 03:55AM UTC

Closed February 15, 2009 10:33PM UTC

ID/Name Selector Bug

Reported by: raymond Owned by:
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
Description

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> 
Attachments (0)
Change History (2)

Changed February 01, 2009 03:21AM UTC by dmethvin comment:1

description: 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> 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> \ }}}

Changed February 15, 2009 10:33PM UTC by john comment:2

component: unfilledselector
milestone: 1.3.11.3.2
resolution: → fixed
status: newclosed

Fixed in SVN rev [6207].