Listbox containing check boxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pradeep

    Listbox containing check boxes

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

    #2
    Re: Listbox containing check boxes

    pradeep a écrit :
    Hi,
    I want to display Listbox containing check boxes in HTML.
    How can i do this ?
    Can you guide me.
    <ul>
    <li><iput type=checboxbla h 1</li>
    <li><iput type=checboxbla h 2</li>
    <li><iput type=checboxbla h 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

    Comment

    Working...