-
Alt
Hello,
I dont know if this can be done (doubt it!!!).
I want "Alt text" to be displayed when a item is selected in a dropdown / select box. The same as the "Alt" when using an image.
eg.
Code:
<img src="images/accept.gif" width="96" height="17" ALT="Some alternate text displayed here!!">
Can this be done with a select / dropdown??
Code:
<select name="test" size="1">
<option value="one item" alt="Display alt text here!!">one item</option>
</select>
Thanks,
T
-
Well, have you tried the example you gave? Other than that, perhaps the "onMouseOver" javascript tag will work, in which case you can alter the statusbar text to give tooltips
-
You could fairly easily write a javascript tooltips function that is called onmouseover and reads the value of the select and displays a hidden DIV/Layer tag block with the alt text.
Just an idea.. but no there is no built in way. ALT is not an attribute for the SELECT tag or OPTION tags.
You can store the alt text in the LABEL attribute but this attribute does nothing unless you implement something that uses it.
-
There is a title attribute that was added to HTML, but IE5.5 doesn't show it on option or select tags.
Code:
<p title="test">fgdfgdfgdfg</p>