Hi guys! can u help me plz. I have a form and I want to make the textfield named 'firstname' to become mandatory if the user checks the radio with the 'No' label. How can I achieve this? Thanks.
Code:
<form id="formname" name="formname" method="post" action="">
<label>
Yes
<input name="agree" type="radio" value="1" />
No </label>
<label>
<input name="agree" type="radio" value="0" />
</label>
<p>
<input name="firstname" type="text" id="firstname" />
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
</p>
</form>