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

Getting the value of a disabled <select> control

P: n/a
Hello,

I'm trying (without any success) to get the value of a disabled select
control. From reviewing:

http://www.w3.org/TR/html401/interac...#adef-disabled

It doesn't sound like it's going to be possible directly. I'm
thinking that I can get around it by enabling the select control
during some javascript that gets executed during the submit.

-Eric

Nov 2 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Eric wrote:
Hello,

I'm trying (without any success) to get the value of a disabled select
control.
I'm assuming you want the value in the form's submission.
From reviewing:

http://www.w3.org/TR/html401/interac...#adef-disabled

It doesn't sound like it's going to be possible directly.
Right
I'm
thinking that I can get around it by enabling the select control
during some javascript that gets executed during the submit.
Either that or use client-side script in the onsubmit event to put the value
in a hidden textbox in the form.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Nov 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.