Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
Los botones de radio en formato HTML no funcionan correctamente

Estoy aprendiendo Javascript y formularios en HTML y conocía los botones de radio. Pero el problema es cuando estoy codificando 3 botones de radio para probar, de alguna manera no funciona, y cuando marco "1" (es un nombre) y elijo otro como "2", no se desmarca " 1"! ¿Mi navegador tiene algún problema o mi código es incorrecto? Estoy usando el navegador Microsoft Edge, y este es mi código:

 <form> <label for="html">This one is Html </label> <input type="radio" name="html" id="html" value="HTML"> <br> <label for="css">This one is Css</label> <input type="radio" name="css" id="css" value="CSS"> <br> <label for="javscript">This one is Javascript</label> <input type="radio" name="javscript" id="javascript" value="JAVASCRIPT"> </form>

Alguien sabe cual es mi problema?

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Por favor, puede usar el botón de radio en ese momento, todos los name de los botones de radio están configurados igual y luego selecciona en ese momento un botón de radio.

 <form> <label for="html">This one is Html </label> <input type="radio" name="skill" id="html" value="HTML"> <br> <label for="css">This one is Css</label> <input type="radio" name="skill" id="css" value="CSS"> <br> <label for="javscript">This one is Javascript</label> <input type="radio" name="skill" id="javascript" value="JAVASCRIPT"> </form>

about 4 years ago · Juan Pablo Isaza Report

0

La propiedad de name es como un grupo. por lo tanto, si establece el mismo name en los botones de opción, estarán en el mismo grupo.

 <form> <label for="html">This one is Html </label> <input type="radio" name="group1" id="html" value="HTML"> <br> <label for="css">This one is Css</label> <input type="radio" name="group1" id="css" value="CSS"> <br> <label for="javscript">This one is Javascript</label> <input type="radio" name="group1" id="javascript" value="JAVASCRIPT"> </form>

about 4 years ago · Juan Pablo Isaza Report

0

Esto es simple, solo necesita usar el mismo name para cada grupo, aquí usé codetype :

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="style.css"> </head> <body> <form> <label for="html">This one is Html </label> <input type="radio" name="codetype" id="html" value="HTML"> <br> <label for="css">This one is Css</label> <input type="radio" name="codetype" id="css" value="CSS"> <br> <label for="javscript">This one is Javascript</label> <input type="radio" name="codetype" id="javascript" value="JAVASCRIPT"> </form> </body> </html>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!