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

137
Views
uso del botón de opción para el servidor asp en javascript

Tengo este código para el servidor asp en javascript. Necesito agregar una condición IF al final para que agregue en la respuesta un "señor". si marcan el botón de selección de género masculino y "fallan". si marque el botón de radio hembra. Justo en frente del nombre que envían. Parece bastante simple, pero no puedo encontrar la sintaxis correcta para ello.

 <%@ LANGUAGE="Javascript" %> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft FrontPage 4.0"> <meta http-equiv="Content-Type" content="text/html; charset=utf8"> <TITLE>Main Page</TITLE> </HEAD> <BODY TopMargin="0" Leftmargin="0"> <form action="./ask.asp" method="post"> Student name: <input type="text" name="name" size="20"><br><br> Sex: <input type="radio" name="choice" value="Male" id="choice-Male"> <label for="choice-Male">Male</label><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="choice" value="Female" id="choice-Female"> <label for="choice-Female">Female</label><br><br> <input type="submit" value="Submit Form"><br> </form> <% Response.Write("Thanks " + Request.Form("name")) %> </BODY> </HTML>

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

0

la respuesta es usar

 var genderChoice=Request.form("choice")

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!