FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Calling multiple areas with javascript

 


thinkfacility
Hi there, here's the code I'm currently using:

<form action="javascript:ReverseDisplay('w1')">

I have a submit button and such, and it works fine. The ReverseDisplay is a function that I've defined, and the w1 is the name of a DIV class that I've created.

I was wondering, could I make the function work for multiple DIV classes at the same time? Something like...

<form action="javascript:ReverseDisplay('w1', 'w2')"> or
<form action="javascript:ReverseDisplay('w1, w2')">

Obviously both of those are incorrect since it doesn't work, but if someone could point me in the right direction that'd be great! Thanks in advance Very Happy
thinkfacility
Ooo...never mind, I got it,

It's

<form action="javascript:ReverseDisplay('w1'); ReverseDisplay('w2');">

In case anybody was wondering Smile
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.