> function nextPage(clicker) { > $(clicker).click(function () {...
Inside the click handler, the "this" variable is the DOM element that was clicked. Try alert(this.id) and you'll see what I mean.
> function nextPage(clicker) { > $(clicker).click(function () {...
Inside the click handler, the "this" variable is the DOM element that was clicked. Try alert(this.id) and you'll see what I mean.