2 functions on click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ukchat
    New Member
    • Sep 2006
    • 15

    2 functions on click

    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
  • JohannC
    New Member
    • Sep 2006
    • 15

    #2
    Originally posted by ukchat
    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

    Comment

    • ukchat
      New Member
      • Sep 2006
      • 15

      #3
      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.

      Comment

      Working...