Jump to content

onmouseover / out


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?

<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>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.