Re: Hiding Options in Select
Scott Sauyet <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Gale, David wrote: > For a project, I need to have an option in a select, but which the user > can't see. (It's selectable through javascript, so I don't want to just > remove the option entirely). All examples I've seen online deal with > adding/removing options themselves, rather than showing and hiding them. I think the easiest way to simulate this is to not have the option in the dropdown. Instead, simply have a little javascript that runs on form submit which copies the value of the selected option or your javascript-only value to a hidden element of the form. Server-side, process that hidden element rather than the actual SELECT one. Maybe there are server-side considerations that make this more difficult, but it should be pretty easy on the client side. Good luck, -- Scott ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/