question about select tag

This is a discussion on "question about select tag" within the Web Page Design section. This forum, and the thread "question about select tag are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jul 14th, 2008, 08:09
Junior Member
Join Date: Dec 2007
Location: auckland
Age: 33
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
question about select tag

I would like an option in the select tag not to be selected by default but appear as the first option when the file is loaded. i have used the following code

HTML: Select all
<option disabled="disabled" selected="selected">Select Category</option>
however this works in firefox but not in Internet Explorer how can i change the above code to work in both the browsers

please advice.

thanks.

Last edited by CloudedVision; Jul 14th, 2008 at 19:38.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 14th, 2008, 21:38
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,321
Blog Entries: 2
Thanks: 9
Thanked 48 Times in 45 Posts
Re: question about select tag

From what you describe, all you need to do is make sure that no options initially have
Code: Select all
selected="selected"
Then just place the 'default' option physically above all the others in your HTML code.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple SQL Select Query Question MrQuestions Databases 7 Mar 20th, 2008 23:11
chained select box dependable select thenamenoonehastaken JavaScript Forum 0 Feb 8th, 2008 05:49
SQL Select error.. nate2099 Databases 4 Jul 10th, 2007 20:55
CSS and select djme Web Page Design 1 Mar 2nd, 2006 02:05
Select a row and go! Please help? taymond JavaScript Forum 1 Nov 16th, 2005 15:50


All times are GMT. The time now is 19:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42