THis is really silly but nevertheless...

I was wondering what does the <Option Selected ...> in the drop down list mean? Does it mean that the indicated option is selected by default? I just wanted to confirm cause even if I remove the "Selected", it still shows the same option on loading...(assume selected is for Index of 0)


THanks in Advance!

Solahere,

Yes, that's quite right.

The option with the selected attribute, should be selected automatically when the page loads.

If "selected" is not being obeyed, then I suggest that, either there is a typographic error in the HTML, or a script is overriding the HTML setting.

Airshow

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.