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 
         

changin the value of a form



 
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
Is it possible to change the value of a form element from within a link using javascript? i don't want to create a function on which to call
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
BigDaddy, just put the code you would put in the function into the link's onclick
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
like onClick="document.changeqtyform.QTY.value='0'"?
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Yes
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
Hmm- that doesn't seem to work
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Check for JS errors then, and see if the onclick even runs by putting an alert() in there.
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
Can i specify self for the formname?
  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