Not getting DropDownList value when setting it via JavaScript

So today I had a problem which was doing my head in. I had a form which has a bunch of DropDownLists on it, some of which are disabled (depending on the radio button selection). Regardless of whether the DropDownList was available I needed to read the …


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

So today I had a problem which was doing my head in. I had a form which has a bunch of DropDownLists on it, some of which are disabled (depending on the radio button selection). Regardless of whether the DropDownList was available I needed to read the value (which was often set via JavaScript) back on the server. But I noticed that the value I was setting via JavaScript wasn’t making it way back to the server if I read the dropDownList.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-02-04T22:20:08+00:00) » Not getting DropDownList value when setting it via JavaScript. Retrieved from https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/.
MLA
" » Not getting DropDownList value when setting it via JavaScript." Posts on LINQ to Fail | Sciencx - Saturday August 28, 2010, https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/
HARVARD
Posts on LINQ to Fail | Sciencx Saturday August 28, 2010 » Not getting DropDownList value when setting it via JavaScript., viewed 2023-02-04T22:20:08+00:00,<https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Not getting DropDownList value when setting it via JavaScript. [Internet]. [Accessed 2023-02-04T22:20:08+00:00]. Available from: https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/
CHICAGO
" » Not getting DropDownList value when setting it via JavaScript." Posts on LINQ to Fail | Sciencx - Accessed 2023-02-04T22:20:08+00:00. https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/
IEEE
" » Not getting DropDownList value when setting it via JavaScript." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/. [Accessed: 2023-02-04T22:20:08+00:00]
rf:citation
» Not getting DropDownList value when setting it via JavaScript | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2010/08/28/not-getting-dropdownlist-value-when-setting-it-via-javascript/ | 2023-02-04T22:20:08+00:00
https://github.com/addpipe/simple-recorderjs-demo