Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jScript on OPTION of SELECT

Status
Not open for further replies.

ghorr

Programmer
Joined
Sep 16, 2002
Messages
29
Location
RO
can i put a JScript function on an OPTION of a SELECT?

something like
select name="xx">
<option value=&quot;yy&quot; ???ONSELECT=&quot;function()&quot;???>active</option>
 
Yes you can! ... like this:

Code:
  <FORM NAME=&quot;countryForm&quot;>
    <SELECT NAME=&quot;map&quot; onChange=&quot;changeMap()&quot;>
      <OPTION VALUE=&quot;europe&quot;>Europe</OPTION>
      <OPTION VALUE=&quot;usa&quot;>USA</OPTION>
    </SELECT>
  </FORM>

Good Luck §;O)


Jakob
 
... by the way: there is a JavaScript forum in here:

forum216

Cheers,


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top