开发者

drop down menu default options all selected

I was wondering how to have all the options in a drop menu (using select tags)开发者_如何学JAVA highlighted?

I already created a button to created a select all button to do this but I want the drop menu all selected by default when arriving on the page.

It would be great if it works for IE and firefox.

thanks


If your select is multiple then any <option> that has selected="selected" will be highlighted by default.

http://www.w3schools.com/tags/tag_option.asp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜