|
-
Jan 29th, 2002, 11:07 AM
#1
Thread Starter
Lively Member
Javascript <select> Question
I have seen somewhere, different items in a dropdown (<select></select>) are bold and some are not - can I find this again?
Anybody knows how??
-
Jan 30th, 2002, 11:12 AM
#2
Frenzied Member
Use a inline style tag on the Option tags that you want bold:
Code:
<select>
<option style="font-weight: bold" value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option style="font-weight: bold" value=4>Four</option>
<option value=5>Five</option>
<option style="font-weight: bold" value=6>Six</option>
</select>
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jan 30th, 2002, 11:18 AM
#3
Thread Starter
Lively Member
Cheers monte96 for the reply - but it doesn't seem to work (i'm Using IE 6), but anyway thanks but I eventually found the page - I was trying to do :-
<select name="SiteNo" style="width:245">
<optgroup label="Main Heading 1">
<option value="1">One
<option value="161">Two
<option value="2">Three
</optgroup>
<optgroup label="Main Heading 2">
<option value="171">Four
</optgroup>
</select>
-
Jan 30th, 2002, 12:01 PM
#4
Frenzied Member
IE 6 supports OPTGROUP? Holy Freakin' Cow!!!
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|