i am trying to increase value of input field use jquery onClick
<input type="hidden" name="endFrom" value="17">
$('.ajaxRequest').click(function (e) {
e.preventDefault();
var endFrom = parseInt($('Form input[name="endFrom"]').val(), 10) + 8;
});
the above value did not increment the endFrom . it simply returned the number 17
i also tried the below but that just returned 178
var endFrom = $('Form input[name="endFrom"]').val()+ 8 ;