Announcement

Collapse
No announcement yet.

Mozilla Radio Button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mozilla Radio Button

    Ok, here is something I can't understand. I have a couple of radio buttons but using the "checked" option is not working in Mozilla. Here is my code:

    HTML Code:
    if ($reefready == "yes") {
    echo "<input type=radio name=reefready value=yes checked>Yes<br />
          <input type=radio name=reefready value=no>No";
    }
    else {
    echo "<input type=radio name=reefready value=yes>Yes<br />
          <input type=radio name=reefready value=no checked>No";
    }
    Now this works fine in IE but the No option is always ticked in Mozilla. What am I missing??????
    sigpic
    Nation of Blue - Kentucky Wildcats Sports


    Some CMS Goodness: Add Avatar to Article

  • #2
    Try using it XHTML conform:

    checked="checked"
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      Got it! Thanks!
      sigpic
      Nation of Blue - Kentucky Wildcats Sports


      Some CMS Goodness: Add Avatar to Article

      Comment


      • #4
        Glad to help
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment


        • #5
          Is this good for adding a radio button that will allow the user to download a radio stream from a hosting company like Shoutcast? Basically I have a file named listen.pls, that will allow listeners to tune into my internet radio station using a player like Winamp.

          If so where in VBulletin do I apply the script?

          Comment


          • #6
            No the radio buttons mentioned above are parts of input forms.

            I assume to allow users to listen to your radiostation, you would have to link to that file. To do so, edit the templates and add the appropriate link where you want it to display.
            Best Regards
            Colin Frei

            Please don't contact me per PM.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X