Jump to content

2 functions to one mouse click


freelance84

Recommended Posts

If I want to apply two functions to one mouse click, how is this done?

 

Is it  a)

onclick="showOther('tweak_help_hide','none','tweak_help_show', 'inline');"

onclick="changeValue('help_value','show');"

 

or  b)

 

onclick="showOther('tweak_help_hide','none','tweak_help_show', 'inline'); changeValue('help_value','show');"

 

 

I know this is pretty basic, but i'm getting there  :)

Link to comment
https://forums.phpfreaks.com/topic/216239-2-functions-to-one-mouse-click/
Share on other sites

Well, I've just started getting my head into JS and I think i'm going to continue for the meanwhile.

 

html php mysql and css, i now have a pretty solid (i think) understanding of and i started out by learning the raw basics and building on them as i went.

 

Also at the moment, i'm only applying bit of js here and there, nothing too intensive.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.