Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button alert

Status
Not open for further replies.

myuserid7

MIS
Mar 2, 2005
111
0
0
ES
I am very new to Javascript and need help. I have his form where users get to click yes or no radio button. I have set it as when they use tab it will give them an alert. But when they use mouse and click it doesn’t fire an alert. I tried for example <input type="radio" value="V1" name="Diabetes_mellitus" style="font-size: 10pt; font-family: Times New Roman" onclick="validateRadioButtonChecked('Multiple_myelomaYes', 'Multiple_myelomaNo', 'Please Select Yes/No for Multiple Myeloma');"> that doesn’t work. Can someone please help! I don’t have the luxury for submit and go button. This form goes under vendor window and stay like that in DB.


Yes No 60 years or older ? if I skip this and
Yes No Diabetes mellitus ? click here it should alert me that you need to check yes/no for 60 years or older
Yes No Hypertension ? if I skip this
Yes No Benign prostatic hypertrophy (BPH) ? click here it should alert me that you need to check yes/no for Hypertension
Yes No Frequent urinary tract infections (3 or more per year consistently) same here



<tr>
<td width="87">

<input id="years_or_olderYes" onblur="validateRadioButtonChecked('years_or_olderYes', 'years_or_olderNo', 'Please Select Yes/No 60 years or older');" <input type="radio" value="V1" name="years_or_older" style="font-size: 10pt; font-family: Times New Roman"><font size="2">Yes</font>


<input id="years_or_olderNo" onblur="validateRadioButtonChecked('years_or_olderYes', 'years_or_olderNo', 'Please Select Yes/No for 60 years or older');" <input type="radio" value="V1" name="years_or_older" style="font-size: 10pt; font-family: Times New Roman"><font size="2">No</font></td>
<td width="547"><font size="2">60 years or older</font></td>
</tr>
<tr>
<td width="87">

<input id="Diabetes_mellitusYes" onblur="validateRadioButtonChecked('Diabetes_mellitusYes', 'Diabetes_mellitusNo', 'Please Select Yes/No for Diabetes Mellitus');" <input type="radio" value="V1" name="Diabetes_mellitusYes" style="font-size: 10pt; font-family: Times New Roman" onblur="validateRadioButtonChecked('Diabetes_mellitusYes', 'Diabetes_mellitusNo', 'you forgot 60 years');" ><font size="2">Yes</font>

<input id="Diabetes_mellitusNo" onblur="validateRadioButtonChecked('Diabetes_mellitusYes', 'Diabetes_mellitusNo', 'Please Select Yes/No for Diabetes Mellitus');" <input type="radio" value="V1" name="Diabetes_mellitusYes" style="font-size: 10pt; font-family: Times New Roman" onblur="validateRadioButtonChecked('Diabetes_mellitusYes', 'Diabetes_mellitusNo', 'you forgot 60 years');" ><font size="2">No</font></td>

<td width="547"><font size="2">Diabetes mellitus</font></td>
</tr>
<tr>
<td width="87">
<input id="HypertensionYes" onblur="validateRadioButtonChecked('HypertensionYes', 'HypertensionNo', 'Please Select Yes/No for Hypertension');" <input type="radio" value="V1" name="Hypertension" style="font-size: 10pt; font-family: Times New Roman"><font size="2">Yes</font>

<input id="HypertensionNo" onblur="validateRadioButtonChecked('HypertensionYes', 'HypertensionNo', 'Please Select Yes/No for Hypertension');" <input type="radio" value="V1" name="Hypertension" style="font-size: 10pt; font-family: Times New Roman"><font size="2">No</font></td>
<td width="547"><font size="2">Hypertension</font></td>
</tr>
<tr>
<td width="87">
<input id="Benign_prostatic_hypertrophyYes" onblur="validateRadioButtonChecked('Benign_prostatic_hypertrophyYes', 'Benign_prostatic_hypertrophyNo', 'Please Select Yes/No for Benign Prostatic Hypertrophy');" <input type="radio" value="V1" name="Benign_prostatic_hypertrophy" style="font-size: 10pt; font-family: Times New Roman"><font size="2">Yes</font>
<input id="Benign_prostatic_hypertrophyNo" onblur="validateRadioButtonChecked('Benign_prostatic_hypertrophyYes', 'Benign_prostatic_hypertrophyNo', 'Please Select Yes/No for Benign Prostatic Hypertrophy');" <input type="radio" value="V1" name="Benign_prostatic_hypertrophy" style="font-size: 10pt; font-family: Times New Roman"><font size="2">No</font></td>
<td width="547"><font size="2">Benign prostatic hypertrophy (BPH)</font></td>
</tr>
<tr>
<td width="87">
<input id="Frequent_urinary_tract_infectionsYes" onblur="validateRadioButtonChecked('Frequent_urinary_tract_infectionsYes', 'Frequent_urinary_tract_infectionsNo', 'Please Select Yes/No for Frequent Urinary Tract Infections');" <input type="radio" value="V1" name="Frequent_urinary_tract_infections" style="font-size: 10pt; font-family: Times New Roman"><font size="2">Yes</font>
<input id="Frequent_urinary_tract_infectionsNo" onblur="validateRadioButtonChecked('Frequent_urinary_tract_infectionsYes', 'Frequent_urinary_tract_infectionsNo', 'Please Select Yes/No for Frequent Urinary Tract Infections');" <input type="radio" value="V1" name="Frequent_urinary_tract_infections" style="font-size: 10pt; font-family: Times New Roman"><font size="2">No</font></td>
<td width="547"><font size="2">Frequent urinary tract infections (3 or
more per year consistently)</font></td>
</tr>
<tr>
 
Perhaps you would be kind enough to provide feedback from this post thread216-1266729 dated August last year?

Knowing whether information was helpful or not helps posters in many ways, as well as giving us satisfaction of knowing that people don't just take, take, take.

Thanks for understanding,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
sorry, BillyRayPreachersSon thread216-1266729 was not was not posted by me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top