| Author |
drop down list changed
|
nastaran zanjnai
Ranch Hand
Joined: Apr 15, 2011
Posts: 43
|
|
in my application I need to check if a drop down list has changed or not. can you please let me know how I should write it?
if (document.form.dropdownlist.???)
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26201
|
|
|
You could use the onchange event to find out when it changes. Or if you want to see if the value has changed since page load (at some later point), you could store the original value in a hidden field and compare it to the current value.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
jhon masco
Ranch Hand
Joined: May 13, 2010
Posts: 93
|
|
hi
Changed from an initial value??? or Changed from an old or retrieved value? Try this and let me know if it is that you want:
Simply copy and paste in you html editor and run.
|
 |
 |
|
|
subject: drop down list changed
|
|
|