The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Need a small bit of JS and styling help please. by Sieldan 2007-03-05 07:28:29
Ive got a dynamically populated select list based on previous selections. Ive been directed to add some stying elements to the whole bunch of selects. All in all, no biggie, except for the dynamic list.

I need to find out how to put a style element into this:

selbox.options[selbox.options.length] = new Option('--- No Selection Made ---','0');
selbox.options[selbox.options.length] = new Option('3/4-16 ThinWall','1');
selbox.options[selbox.options.length] = new Option('3/4-16 HeavyWall','2');

But I need to do it so that it does not affect the first option (0)
And Ive got no clue how to do it.

Any help will be much appreciated,
Sieldan
[ Reply ]
  well, select elements can be by ToLazyToThink2007-03-05 07:35:37
    Coolness, that worked like a champ. by Sieldan2007-03-05 08:05:33

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)