HighDots Forums  

Listbox containing check boxes

Javascript JavaScript language (comp.lang.javascript)


Discuss Listbox containing check boxes in the Javascript forum.



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

Default Listbox containing check boxes - 06-16-2008 , 08:20 AM






Hi,
I want to display Listbox containing check boxes in HTML.
How can i do this ?
Can you guide me.

Reply With Quote
  #2  
Old   
SAM
 
Posts: n/a

Default Re: Listbox containing check boxes - 06-16-2008 , 09:34 AM






pradeep a écrit :
Quote:
Hi,
I want to display Listbox containing check boxes in HTML.
How can i do this ?
Can you guide me.
<ul>
<li><iput type=checbox> blah 1</li>
<li><iput type=checbox> blah 2</li>
<li><iput type=checbox> blah 3</li>
</ul>

or

<label for="c_1">Blah 1</label>
<input ud="c_1" type=checkbox>
<label for="c_2">Blah 2</label>
<input ud="c_2" type=checkbox>
<label for="c_3">Blah 3</label>
<input ud="c_3" type=checkbox>

or :

<label for="c_1">Blah 1
<input ud="c_1" type=checkbox></label>
<label for="c_2">Blah 2
<input ud="c_2" type=checkbox></label>
<label for="c_3">Blah 3
<input ud="c_3" type=checkbox></label>


Now it is only a question of css to simulate a Listbox.
(and perhaps a bit of JS to launch something when clicking on a label)

--
sm


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.