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!!!
shivarocks
0
Newbie Poster
Recommended Answers
Jump to PostTo 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.
Jump to PostI think one more option is checkbox, what do you think?
All 6 Replies
@developer
3
Junior Poster in Training
shivarocks
0
Newbie Poster
Rajib Ganguly
0
Newbie Poster
@developer
3
Junior Poster in Training
teedoff
3
Posting Pro
@developer
3
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.