0
I have the following code:
<select id="billing">
<option value="485">Acre</option>
<option value="486">Amapá</option>
...
</select>
When the user enters the zip code, the system automatically searches the address and inserts the data into the form. However, I need this Jquery to locate the value of the option and include Selected="Selected". Thank you for the force.
That’s not really how it works... just make a
document.getElementById('billing').value = 486
, for example– MarceloBoni