Results 1 to 3 of 3

Thread: what am i missing? Single radio button is not uncheckable?

  1. #1
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what am i missing? Single radio button is not uncheckable?

    Howdy

    I want a very simple single radio button, that when selected [or ticked] sets a variable to True , and if unselected returns false.
    Here is my code.

    ##############################################3
    sub TickTrueFalse()
    %>

    <input type="radio" name=<%Response.Write(rsConn.Fields("QuestionNo") & "B")%> value=<%Response.Write(rsConn.Fields("QuestionText"))

    if (rsConn.Fields("defaultanswer") = "QuestionText") then%> checked="checked" <% end if %> />

    <%Response.Write(rsConn.Fields("QuestionText")&" ")%>

    <%
    end sub
    #################################

    It is checkable , but then if the user changes her mind its becomes uncheckable.... what the???

    Camacazi

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ccaammaaccccaazzii
    I want a very simple single radio button, that when selected [or ticked] sets a variable to True , and if unselected returns false.
    Radio buttons are not meant for single use; they represent a set of mutually-exclusive options. Radio buttons should be used in groups where one control, and only one, is always selected.

    What you should be using is a checkbox.

    Mike

  3. #3
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks mike

Bookmarks

Posting Permissions

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