ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Ajax dropdown id
Title:
B
I
{code}
?
What Id is generated for an AjaxDropDown? I disable all input fields on my form with $('input, select, textarea').attr('disabled','disabled') then enable selectively the ones I need to enter. Enabling the apparent id of the dropdown field doesnt enable the field Thanks
Save Changes
Cancel
Ratladi
asked at 14 Mar 2014
Answers
B
I
{code}
?
you can see the html using chrome dev tools (F12 or Ctrl+Shift+i), firebug, etc. the ajaxdropdown has a hidden input and a select which is rebuild every time the dropdown is loaded (aweload event)
Save Changes
Cancel
Omu
answered at 14 Mar 2014
Thanks, using Chrome shows there is no id on the select, the hidden field gets the default id. Fortunately adding the id via htmlattributes gave the id to the select.
at 15 Mar 2014
Ratladi
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK