This project is archived and is in readonly mode.

#5088 ✓stale
Brian Cardarella

[PATCH] Render the hidden tag after the checkbox tag

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

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.

Comments and changes to this ticket

  • Brian Cardarella

    Brian Cardarella July 12th, 2010 @ 01:58 AM

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

    Brian Cardarella July 12th, 2010 @ 02:10 AM

    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.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:36 PM

    • 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.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 04:36 PM

    • State changed from “open” to “stale”
  • bingbing

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages