survivorjoe
Technical User
Greetings,
I have the code shown below. When I click on the "Get Application" link, I want it to work only when the checkbox is checked. If it is not checked, I want a pop-up alert box to appear. I have tried a few things, but I am not getting it right. Here is the html code. What javascript is needed to make this concept work? Many thanks!
-----------------------------------------------------
<tr>
<td width="336"><div class="download"><a href="app.pdf" target="_new">Get Application</a></div>
<div class="download">Info about the app. Blah, blah, blah.</div><p>
<table><tr><td valign="top"><form name="vendor_app"><b>*</b><input type="checkbox" name="vendor_app"></form></td><td valign="top"><div class="download">I agree to the terms of this program, blah, blah, blah.</div></td></tr></table>
</td>
</tr>
I have the code shown below. When I click on the "Get Application" link, I want it to work only when the checkbox is checked. If it is not checked, I want a pop-up alert box to appear. I have tried a few things, but I am not getting it right. Here is the html code. What javascript is needed to make this concept work? Many thanks!
-----------------------------------------------------
<tr>
<td width="336"><div class="download"><a href="app.pdf" target="_new">Get Application</a></div>
<div class="download">Info about the app. Blah, blah, blah.</div><p>
<table><tr><td valign="top"><form name="vendor_app"><b>*</b><input type="checkbox" name="vendor_app"></form></td><td valign="top"><div class="download">I agree to the terms of this program, blah, blah, blah.</div></td></tr></table>
</td>
</tr>