highlight questions in php web form
Posted: Thu Nov 17, 2011 6:36 am
what's would be the easiest way to highlight a question in a web form a certain color? say i have a standard question with radio buttons:
If the user clicks on any of the radio buttons or the question itself, I want a colored box around the whole question (including answers) to light up so that the question is highlighted. it would also be okay if i could get the question to be highlighted when the mouse hovers over it.
thanks!
~p
Code: Select all
<form id="form1" name="form1" method="post" action="feedback.php">
<p class="style13"><strong>Do you play basketball?</strong><br />
<input name="q1" type="radio" value="yes" /> Yes
<br />
<input name="q1" type="radio" value="no" /> No
<br />
<input name="q1" type="radio" value="dont_know" /> Don't know
<input name="submit" type="submit" value="SUBMIT" />
</p>
</form>
thanks!
~p