Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Render the hidden tag after the checkbox tag

#5088

Github commit: http://github.com/bcardarella/rails/commit/10281d1bcee4abd753318249...

Because the hidden tag that is generated by the check_box form helper shares the exact same name attribute as the actual check_box input tag this causes some issues with Javascript plugins that rely upon the name attribute. Specifically the JQuery.Validate plugin: http://docs.jquery.com/Plugins/Validation

Any Javascript that assumes that names are unique will grab the first one found which will end up being the hidden element as currently rendered.

Reported by Brian Cardarella · July 12th, 2010 @ 01:53 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Brian Cardarella
    Brian Cardarella
    • Tag changed from action_view, check_box, hidden, javascript to rails 3.0.0.beta4, action_view, check_box, hidden, javascript

    July 12th, 2010 @ 01:58 AM

  2. Brian Cardarella
    Brian Cardarella

    Forget it, this is not the fix. I didn't know that if the hidden field came after that Rails would consider that the default. Somebody please close.

    July 12th, 2010 @ 02:10 AM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Tag changed from rails 3.0.0.beta4, action_view, check_box, hidden, javascript to rails 300beta4, action_view, check_box, hidden, javascript

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:36 PM

  4. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:36 PM

  5. bingbing