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?
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:
<div>
<input type="button" id="button" value="Click Me" name="click_me" />
</div>
JQuery:
$(document).ready(function(){
var clicks = 0;
$("#button").click(function(){
clicks++;
alert(clicks);
});
});