I have this drop down menu.It stores month, Jan-Dec. User can choose any value of the drop down menu but just one time only. Meaning, lets say previously he choose Jan, the next time if he logged in/ enter new record, he cannot choose Jan anymore or maybe remove the month permanently. Once he select the month, it will be store in session to other page. So, if you guys have any idea,suggestions, or plans, dont hesitate to leave ur answer here. Thank you.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Here are three working examples of what you're looking for:
Using jQuery:
http://jsfiddle.net/wLNZX/
With plain JavaScript:
http://jsfiddle.net/wLNZX/1/
Coded inline with the <select>
tag:
http://jsfiddle.net/wLNZX/2/