Hi Tzontonel,

I guess that onClick is not the expected way to use the drop-down items :-)
You may use this:

<select onChange="document.jmol.script(this.value)">
<option value="select">Select vibration by clicking here</option>
<option class="green" value="frame 4">T(Ca, CO3)</option>

etc., as long as you don't need the 'value' property you were already using. 
Even so, if it's 
always the same as the displayed text, this can be get using  option[i].text  I 
think. Example:

<select onChange="document.jmol.script(this.value); 
alert(this.options[this.selectedIndex].text)">

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to