drop down list readonly html

 

 

 

 

Is there not a way to set a DROPDOWN list to READONLY using jQuery or straight javascript? The objective is to NOT let a user change the value selected in the dropdown list. i had put code read only, but its not working. How to make a dropdownlist readonly? thanks. Then you can use this, just replace all DropDownList with CustomeDropDownList in HTML and every thing else remainsDropDownLists only have an Enabled and Disabled mode, not a ReadOnly. Below is the code where the dropdownlist is generated (in View) Html. DropDownList( feeTypes , null, new disabled false ) The above. Also you forgot to use ) after title And you should use "disabled" > "disabled" instead of readonly > readonly. I dont think they have a readonly attribute in html tags. echo form-> dropDownList Create a drop-down list with four optionsTip: The

readonly() The drop down lists is another way to give the user the opportunity to choose just one of a series of choices. When would you use the drop down list?HTML5 allows you to shorten you markup when using the selected attribute, so instead of writing.

new posts


Copyright ©