onclick on option not working on IE or safari

J

James Black

I have a select box that uses onclick on each option tag.

This works fine in firefox, but not in IE or Safari.

I don't know if I should use onblur for each option.

I don't want to use onchange for the select, as I want any of the
options selected to be reacted to.

The user is selecting for one one of three dates (start of semester,
end of semester, use calendar). I could just put a blank option as the
default option, so that the other three options will fire onchange.

I am hoping that someone can help me to better understand how to
approach getting this to work properly.

Thanx.
 
R

RobG

James Black said on 12/04/2006 12:34 PM AEST:
I have a select box that uses onclick on each option tag.

This works fine in firefox, but not in IE or Safari.

I don't know if I should use onblur for each option.

Don't do that. Put the onclick on the select and look at the selected
option - it may require additional work for a multiple select.


[...]
 
J

James Black

I will try that in the morning.

I didn't think about putting the onclick on the select box. Thank you.

Thankfully it is just a single-select, so it shouldn't be too much
coding. :)
 
R

RobG

James Black said on 12/04/2006 12:42 PM AEST:
I will try that in the morning.

I didn't think about putting the onclick on the select box. Thank you.

Thankfully it is just a single-select, so it shouldn't be too much
coding. :)

You should also check how it behaves if keyboard navigation is used -
tab to select, up/down arrow to modify.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top