hello friends i need to make a edit profile page in my website,while registering a user can select multiple locations using multiple select options,so while editing user must get defaultly selected options while registering,i tried using multiple=multiple,but after getting details from databas it must select automaticlly....i cant do that can anyone help me regarding this???
Thanking you in advance!!!
Jump to Post
To make the options selected by default, use the attribute selected="selected" like..
<select> <option selected="selected"></option> </select>
You will have to check which all options need to have selected attribute before adding to it.
All 6 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.