Jump to content

Pass parameter to button callback


mtburdon
 Share

Recommended Posts

Hi there,

 

I'm trying to do something which I think should be rather simple but I don't seem to be able to achieve it.

 

When a button is clicked, I'm trying to pass a parameter to the button callback function, however if I pass anything to the function and console.log it out, it's always the clicked button.

 

Is there a way to pass a parameter other than the button to the button callback?

 

Thanks!

Martin

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...