Bug Tracker

Modify

Ticket #4020 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

ID/Name Selector Bug

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

Description (last modified by dmethvin) (diff)

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> 

Change History

comment:1 Changed 5 years ago by dmethvin

  • Description modified (diff)

comment:2 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from unfilled to selector
  • Milestone changed from 1.3.1 to 1.3.2

Fixed in SVN rev [6207].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.