By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

onChange does not execute when original value selected.

P: n/a
Am I correct in assuming that when the starting value of a select list
is re-selected, the onChange command does not execute?

I need to have it execute when the original value is selected if
possible.

--
Mike
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Lee
mike said:

Am I correct in assuming that when the starting value of a select list
is re-selected, the onChange command does not execute?

I need to have it execute when the original value is selected if
possible.


Many people add a dummy first value to select lists, with text like:
"Choose one..."

That ensures that selecting any real value will fire the onChange
event.

Jul 20 '05 #2

P: n/a
On 2 Mar 2004 08:25:10 -0800, mike <kn*****@cairodurham.org> wrote:
Am I correct in assuming that when the starting value of a select list
is re-selected, the onChange command does not execute?

I need to have it execute when the original value is selected if
possible.


Then use onclick. onchange will only fire when the value is *changed*,
surprisingly enough :)

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.