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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript question

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,

I took a look at the slice of code on
and I wonder...

if you just take a look at the code you will see that
they create a different change function for every button.
I find that very suspicious. Isn't there a way to call a
javascript function change with 2 arguments, the first one
is the button, and the second one the value it should get ?
That way you only need one change function instead of
change1,change2 etc.

thnx!

Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
Yeah you can, via the use of loops...
This is may become more hectic if you require alot of buttons... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top