Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 14th, 2005, 09:48 PM
Authorized User
 
Join Date: Dec 2003
Location: Chennai, Tamil NAdu, India.
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default multicolored List Box or Select Box

Hello,

 I have an immediated requirement of displaying the contents of my list box in multicolor, ie., I have a 3 different types of items such as "Accepted" "Pending" and "Rejected" i need o display these in 3 different colors in my list box.

Please help me immediately as this is an urgent requirement.

thanking you

regards
sasidhar

thanks,
Sasidhar
__________________
thanks,
Sasidhar
Reply With Quote
  #2 (permalink)  
Old February 15th, 2005, 12:47 AM
Authorized User
 
Join Date: Dec 2003
Location: Chennai, Tamil NAdu, India.
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default

the following when applied using Javascript , I was able to set the text color for an option in the List box.

<head>
<style type="text/css">
option.red {
color: red;
}

option.blue {
color: blue;
}
</style>
</head>
<body>
<form>
<select>
<option class="red">Car</option>
<option class="blue">Cycle</option>
</select>
</form>

thank you

thanks,
Sasidhar
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seek help for select Month in list box apple88 Classic ASP Databases 1 October 11th, 2007 01:11 PM
multi-column list box values moved to 2nd list box sbmvr Access VBA 1 May 14th, 2007 01:58 PM
select box/List box alphabetic sort sasidhar79 Javascript How-To 3 November 10th, 2004 02:04 AM
Multi Select List Box Coding Errors... snoopy92211 VB Databases Basics 10 June 30th, 2004 08:33 AM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM



All times are GMT -4. The time now is 04:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.