Jump to content

onmouseover / out


Destramic

Recommended Posts

i have a problem...i want to9 be able to have my select box displayed and when the user goes through the options the background colour will change...ive made it possible with input and textarea but for some reason or other i cannot get it to work on select box..can anyone help please?


[code]
<select id="error_type" name="error_type" onmouseover="this.className='mouse_over';"  onmouseout="this.className='this.class';">
<optgroup label="Select Error Type">
<option value=""></option>
<option value="Broken Link" <?php echo $broken_link; ?>>Broken Link</option>
<option value="Spelling Mistake" <?php echo $spelling_mistake; ?>>Spelling Mistake</option>
<option value="Spam" <?php echo $spam; ?>>Spam</option>
<option value="Other" <?php echo $other; ?>>Other</option>
</optgroup>
[/code]
</select>
Link to comment
https://forums.phpfreaks.com/topic/27721-onmouseover-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.