HighDots Forums  

Select Box Style ändern...

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Select Box Style ändern... in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
D.Hesse
 
Posts: n/a

Default Select Box Style ändern... - 07-12-2003 , 07:51 AM






Hallo,

bei einer Selectbox ist es möglich per style jeden Eintrag farbig zu
markieren ( Beispiel ).
Ist es möglich diese Eigenschaft pro Option per Javascript zu setzen/ändern.
Mit document.all.linkliste.style.backgroundColor = "#FFFFFF";
ändere ich nur den Background der ganzen Liste.


<select name="sdg" id="linkliste">
<option style="background-color : pink">2424</option>
<option>5435</option>
<option style="background-color : pink">3534</option>
</select>



mfg
Daniel




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.