I want to increment the value of a variable when a button is pressed on the screen, but I don’t know how can I do that. Is there a method in rhodes like .click or something like that so that when the user clicks the button the variable value should be incremented?
I want to increment the value of a variable when a button is pressed
Share
Are you starting from scratch on this or do you have some code you can display to help us get a concept of what you’re doing as a whole? In native Jquery what your asking I’ve provided in the code below. It’s my understanding that rhodes comes equipped with Jquery and you should be able to use it’s native controls.
HTML:
JQuery:
Fiddle:
http://jsfiddle.net/GvGoldmedal/KFax4/