Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

radio button checked="checked" not working fine

  • 2 odpovede
  • 3 majú tento problém
  • 4 zobrazenia
  • Posledná odpoveď od cor-el

more options

i have two radio buttons

<input type="radio" name="scraplocation" id="radio1" value="port" checked="checked" onclick="showport();"> Port
                       	<input type="radio" name="scraplocation" id="radio2" value="door" onclick="showdoor();">Door

Here the first button will be in selected condition but when i want to select the second button it not working fine. i want to click twice or thrice to choose second radio button.
The problem vanishes if i choose i avoid checked="checked" in first radio button

i have two radio buttons <pre><nowiki><input type="radio" name="scraplocation" id="radio1" value="port" checked="checked" onclick="showport();"> Port <input type="radio" name="scraplocation" id="radio2" value="door" onclick="showdoor();">Door</nowiki></pre> Here the first button will be in selected condition but when i want to select the second button it not working fine. i want to click twice or thrice to choose second radio button.<br /> The problem vanishes if i choose i avoid checked="checked" in first radio button

Upravil(a) cor-el dňa

Všetky odpovede (2)

more options

Hi there,

This support website is primarily intended for Firefox end users, not web developer questions. Upon first glance, it's hard to tell what might be going on with your code. Could there be something happening in the showdoor() function that triggers it to reset? You might want to try to strip out those onClick functions and see if it works then -- if it does, you'll want to closely debug the functions.

more options

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.