redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

onchange of a selectbox



 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
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?
  Reply with quote


jomanda



Joined: 19 May 2006
Posts: 70
Location: Germany
Onchange="f();" ?
  Reply with quote
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
  Reply with quote
Lusis Backwood JR



Joined: 26 May 2006
Posts: 87
Location: United States
`js domref
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
Js domref: w3.org/DOM/ , http://developer.mozilla.org/en/docs/DOM , www.mozilla.org/docs/dom/domref/ , www.zvon.org/xxl/DOM2reference/Output/index.html , www.krook.org/jsdom/ , www.brainjar.com/dhtml/intro/
  Reply with quote
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
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group