Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

drop down list changed  RSS feed

 
nastaran zanjnai
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!