I know that the question is how to configure the input, but just in case, if you want to install a combo box, then (Iβm looking for a network for it and havenβt found anything, and this place seems to be the right place to guide others)
If you have a form with a set of ID attributes (for example, frm1) and you want to set a specific special command with a list, without a set of identifiers, but a name attribute attribute (for example, district); then use
$("#frm1 select[name='district'] option[value='NWFP']").attr('selected', true);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <form id="frm1"> <select name="district"> <option value="" disabled="" selected="" hidden="">Area ...</option> <option value="NWFP">NWFP</option> <option value="FATA">FATA</option> </select> </form>
Adeel Raza Azeemi Oct 02 '17 at 8:07 on 2017-10-02 08:07
source share