• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass value onClick to a function *SOLVED*  RSS feed

 
Bradly Fackrell
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*SOLVED* I couldn't see how to remove this so I'll post my solution.

All I had to do was remove int


*SOLVED*
Original Question:
Is possible to pass a value from a button click to a function? Here is what I'm trying to do with no success:



I'm pretty sure that I'm just not passing my int properly.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, simple syntax error.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!