jquery - How to create readonly select box but I will post that value? -
i want readonly select box. post value element. when disabled select box can't post value.
<select name="office_name" id="office_name" readonly> <option value="">----select office----</option> <option value="1">bengli</option> <option value="2">english</option> </select>
readonly not work disabled work. need readonly not disabled. possible?
you can like:
just don't disable option want post else disable options
so 2 value posted php now.
<select> <option disabled="disabled">1</option> <option selected="selected">2</option> <!-- dont disable option want post else disable options--> <option disabled="disabled">3</option> </select>
Comments
Post a Comment