| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
<script language="JavaScript"> function f() { alert('a'); } </script>
How can I call that from an onchange of a select box? |
| |
|
|
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
| Onchange="f();" ? |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
Wrong
The onchange must be part of the select
And not the containing span!
:)
Thanks for playing
Is there a refrence page so I can tell what I can call on a select box
Like a selectedItem or something |
| |
|
|
Lusis Backwood JR
Joined: 26 May 2006 Posts: 87 Location: United States
|
| `js domref |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
| |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
Aha
W3's dom
Lusis Backwood JR, none of those links have a refrence to what I need, I need to know the properties and methods of form elements like select and stuff
Msdn has one |
| |
|
|
|
|