HighDots Forums  

Inhalt von Selectbox ändern

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


Discuss Inhalt von Selectbox ändern in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sebastian Hort
 
Posts: n/a

Default Inhalt von Selectbox ändern - 12-22-2004 , 07:09 AM






Hi NG

Ich habe eine Knopf der mir Elemente sichtbar/unsichtbar macht mit:
if (getElementById('Sort').style.visibility=='hidden' )
{
getElementById('Sort').style.visibility='visible')
}
else
{
getElementById('Sort').style.visibility='hidden')
}

Elemente:
<div id="Sort" style="visibility:hidden">
<select>
<option>1</option>
<option>2</option>
</select>
</div>

Wenn ich auf Knopfdruck das Element wieder unsichtbar mache will ich
auch das die Selectbox wieder auf das 1. Element gesetzt wird also
auf defaultselected. Wie geht das?

mfg Sebastian




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.