MyBB Community Forums

Full Version: How to make a value from a select option highlighted automatically?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: 2cco7tk.jpg]

So I selected my sex as Male, then refreshed the page, and now "Male" is automatically highlighted. What makes "Male" highlighted, as it's stored in the database?

EDIT: Nevermind, I figured it out. It is selected="selected" in html.