Hi,
----- Ursprüngliche Mail -----
> Von: "P.Canepa" <[email protected]>
> An: [email protected]
> Gesendet: Donnerstag, 8. Juli 2010 11:10:26
> Betreff: [Jmol-users] select item with javascript
> Dear All,
>
> Does anyone know how to select item in listboxes with javascript ? I
> don't mean to get the value given a selected element in a listbox .
>
It is probably most simple if you use a library such as jQuery:
http://api.jquery.com/val/#val2
In general you can use the selectedIndex DOM property:
http://www.w3schools.com/jsref/prop_select_selectedindex.asp
Alex
> Thanks
>
> --
> Please consider the environment before printing this e-mail.
>
> Pieremanuele Canepa
> Room 104
> Functional Material Group
> School of Physical Sciences, Ingram Building,
> University of Kent, Canterbury, Kent,
> CT2 7NH
> United Kingdom
>
> e-mail: [email protected]
> mobile: +44 (0) 7772-9756456
> -----------------------------------------------------------
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users