I am using JavaScript with jQuery. I have the following
var $ticket = $nxt.parent().prev().children('.ticket');
and $ticket.text() is integer 1.
I want to increment it by 1 when when I click as;
$('.next').click(function()
How can I do this??
A fancy solution would be
In your case use as:
Also see this jsFiddle.