I have a URL stored in a variable and would like to increment the number at the end of the image name by 1 when a user clicks,
$(document).on('click', 'a.next', function(e){
e.preventDefault();
var URL = "http://www-url.com/img/436x768/look1.png";
});
How could I go about this? thanks.