By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

2 functions on click

P: 15
Hi there,
I've just started AJAX/PHP and im having an issue trying to get 2 divs to chnage onclick.. I have tryed creating 1 function with a call to 2 functions and using that. i've tryed creating a function and calling the other at the end and many other variations but with no luck!

Has anyone else come across this? and is there a way that will be compatible with IE and firefox?

Regards
Liam
Sep 13 '06 #1
Share this Question
Share on Google+
2 Replies


JohannC
P: 15
Hi there,
I've just started AJAX/PHP and im having an issue trying to get 2 divs to chnage onclick.. I have tryed creating 1 function with a call to 2 functions and using that. i've tryed creating a function and calling the other at the end and many other variations but with no luck!

Has anyone else come across this? and is there a way that will be compatible with IE and firefox?

Regards
Liam
Hi Liam
You can use The DOM Object To get the Div Tag You need and set the needed attributes in the Div Tag on the ONCLICK Event , both Can Divtags be set in a single method.

Hope this helps
Sep 13 '06 #2

P: 15
Do you have a small example of how this would be done? If not then dont worry i will just have a look when i get home as i virtualy live at work and it's well busy atm.
Sep 14 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.