<font face="arial" size="2">&nbsp;&nbsp;&nbsp;You could do it like this (assuming you can pass the select object and the string to the function):<br /><br /><font face="Times New Roman" size="3">function getText(theSelect, theString) {<br />&nbsp;&nbsp;&nbsp;return theSelect.options[theSelect.selectedIndex].text.indexOf(theString);<br />}</font><br /><br />...or something more tailored to your needs, but this is the basic method.<br /><br />Cheers,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: "Michael Borchers" &lt;borchers@tridem.de&gt;<br /></font><br />&gt;function getText() {<br />var theSelect = document.forms[0].myselect;<br />return theSelect.options[theSelect.selectedIndex].text;<br />}<br />&lt;<br /><br />thanks peter,<br />and how do i compare with javascript, with the IndexOf function?<br /><br /><select name="myselect"><option value="0" selected="">first option</option><option value="1">next option</option><option value="2">another one</option></select><br /><br />let's say the string is "option" and we search it within theSelect.options[theSelect.selectedIndex].text<br />?!<br />____________