Search Result

Collapse
2 results in 0.0043 seconds.
Keywords
Members
Tags
javascript unselect
  •  

  • Select/Unselect items in multiple select using javascript

    Hi all,

    I have a HTML multiple select (ListBox) control:

    [HTML]<select id="mySelect" multiple>
    <option>Apple </option>
    <option>Orang e</option>
    <option>Pineapp le</option>
    <option>Banan a</option>
    </select>[/HTML]

    I'm looking for a way to select / unselect a few items in this list using javascript....
    See more | Go to post
    Last edited by gits; Jul 29 '08, 06:55 AM. Reason: added code tags

  • Stefan Mueller
    Guest started a topic How to unselect a text of an input box

    How to unselect a text of an input box

    I've an input box
    <input type = "text" name = "MyInput" value = "">

    and a selection
    <select name = "MySelectio n" size = "1">
    <option value = "1">Entry 1
    <option value = "2">Entry 2
    </select>

    With
    document.MyForm .MyInput.focus( );
    document.MyForm .MyInput.select ();

    I can...
    See more | Go to post
Working...