Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Does a disabled radio button pass a value?

    I have a form that disables the radio options after choosing one and pressing a confirm selection button.
    Does the disabled attribute affect the value submitted?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,799
    Thanks
    78
    Thanked 4,411 Times in 4,376 Posts
    Why not just try it yourself???
    Code:
    <form>
    <input type="radio" name="see" value="123" checked disabled />
    <input type=submit>
    </form>
    Put that code (nothing else) into an HTML page and click the submit button. Look at the url at the top of the browser window. What do you see?

    No remove the disabled and do the same thing. *Now* what do you see?

    'nuf said?
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,078
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    No form element which is disabled is passed to the processor.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •