Click here to Skip to main content
15,889,992 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to write confirmation message? Pin
Praneet Nadkar4-May-14 23:39
Praneet Nadkar4-May-14 23:39 
Questionconsume external WCF REST services using Angular.js Pin
ramsai19737-Mar-14 1:14
ramsai19737-Mar-14 1:14 
AnswerRe: consume external WCF REST services using Angular.js Pin
Jellali Tarek7-Mar-14 4:38
Jellali Tarek7-Mar-14 4:38 
AnswerRe: consume external WCF REST services using Angular.js Pin
petra.elhashem7-Mar-14 10:30
petra.elhashem7-Mar-14 10:30 
Questionbody onunload Pin
RabbitTrail6-Mar-14 16:26
RabbitTrail6-Mar-14 16:26 
AnswerRe: body onunload Pin
vbmike7-Mar-14 3:39
vbmike7-Mar-14 3:39 
AnswerRe: body onunload Pin
twseitex13-Mar-14 9:33
twseitex13-Mar-14 9:33 
QuestionHow to Check whether radio button is checked or not [SOLVED] Pin
monsterchub6-Mar-14 5:07
monsterchub6-Mar-14 5:07 
I need to check whether the radio button is selected or not. So, when I click on submit button, it will check the radio button, if there's unselected button then show alert, if button is selected then move to another page. Can anyone help me using Javascript??? Thank you
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form id="form" name="form" action="" method="post">
<style type="text/css">
.tftable {font-size:16px;color:#333333;width:50%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}
.tftable th {font-size:24px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}
.tftable tr {background-color:#d4e3e5;}
.tftable td {font-size:16px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;}
.tftable tr:hover {background-color:#ffffff;}
</style>

        <table class="tftable" border="1">
<tr><th width="400"><div align="center" class="style2">Questions</div></th><th colspan="2"><div align="center" class="style2">Answer</div></th>
</tr>
<tr><td>I like to listen to songs on the radio or a CD</td>
<td width="70">
  <label></label>
  <label>
  <input name="bm1" type="radio" value="1" />
  Yes</label>
</td>
<td width="72">
<label></label>
<label>
<input name="bm1" type="radio" value="2" />
No
</label>
</td>
</tr>
<tr><td>I like to watch music videos on TV</td><td>
  <label>
  <input name="bm2" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm2" type="radio" value="2" />
No </label>
</td>
</tr>
<tr><td>I like to go to music concerts and hear live music</td><td>
  <label>
  <input name="bm3" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm3" type="radio" value="2" />
No </label>
</td>
</tr>
<tr><td>I can easily remeber tunes, raps, or melodies</td><td>
  <label>
  <input name="bm4" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm4" type="radio" value="2" />
No </label>
</td>
</tr>
<tr><td>I take music lessons, singing lessons, or play a muscial instrument</td><td>
  <label>
  <input name="bm5" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm5" type="radio" value="2" />
No </label>
</td>
</tr>
<tr><td>I can learn new songs easily</td><td>
  <label>
  <input name="bm6" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm6" type="radio" value="2" />
No </label>
</td>
<tr><td>I like to sing</td><td>
<label>
<input name="bm7" type="radio" value="1" />
Yes</label>
</td>
<td>
  <label>
  <input name="bm7" type="radio" value="2" />
No </label>
</td>
</tr>
</table>
</form>

</body>
</html>


modified 7-Mar-14 5:35am.

AnswerRe: How to Check whether radio button is checked or not Pin
Peter Leow6-Mar-14 6:25
professionalPeter Leow6-Mar-14 6:25 
GeneralRe: How to Check whether radio button is checked or not Pin
monsterchub6-Mar-14 7:39
monsterchub6-Mar-14 7:39 
GeneralRe: How to Check whether radio button is checked or not Pin
monsterchub6-Mar-14 9:02
monsterchub6-Mar-14 9:02 
AnswerRe: How to Check whether radio button is checked or not Pin
Peter Leow6-Mar-14 16:06
professionalPeter Leow6-Mar-14 16:06 
Questionreference type vs. primitive type Pin
ThetaClear4-Mar-14 20:37
ThetaClear4-Mar-14 20:37 
AnswerRe: reference type vs. primitive type Pin
Richard Deeming4-Mar-14 23:30
mveRichard Deeming4-Mar-14 23:30 
GeneralRe: reference type vs. primitive type Pin
ThetaClear5-Mar-14 1:15
ThetaClear5-Mar-14 1:15 
GeneralRe: reference type vs. primitive type Pin
Richard Deeming5-Mar-14 1:26
mveRichard Deeming5-Mar-14 1:26 
GeneralRe: reference type vs. primitive type Pin
ThetaClear5-Mar-14 1:35
ThetaClear5-Mar-14 1:35 
AnswerRe: reference type vs. primitive type Pin
twseitex13-Mar-14 9:43
twseitex13-Mar-14 9:43 
QuestionBandwidth throttling with Java-script Pin
Member 106426994-Mar-14 5:44
Member 106426994-Mar-14 5:44 
AnswerRe: Bandwidth throttling with Java-script Pin
twseitex13-Mar-14 9:50
twseitex13-Mar-14 9:50 
QuestionCross browser compatibility Pin
Mary Abraham27-Feb-14 15:05
Mary Abraham27-Feb-14 15:05 
AnswerRe: Cross browser compatibility Pin
Peter Leow27-Feb-14 15:57
professionalPeter Leow27-Feb-14 15:57 
GeneralRe: Cross browser compatibility Pin
Mary Abraham27-Feb-14 16:46
Mary Abraham27-Feb-14 16:46 
AnswerRe: Cross browser compatibility Pin
Jellali Tarek7-Mar-14 4:42
Jellali Tarek7-Mar-14 4:42 
QuestionSimple computing machine Pin
Member 1062982927-Feb-14 2:07
Member 1062982927-Feb-14 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.