How to increment a numeric string by +1 with Javascript/jQuery
<p>I have the following variable:</p>

<pre><code>pageID = 7
</code></pre>

<p>I'd like to increment this number on a link:</p>

<pre><code>$('#arrowRight').attr('href', 'page.html?='+pageID);
</code></pre>

<p>So this outputs 7, I'd like to append the link to say 8. But if I add +1:</p>

<blockquote>
  <p>$('#arrowRight').attr('href', 'page.html?='+pageID+1);</p>
</blockquote>

<p>I get the following output: 1.html?=71 instead of 8.</p>

<p>How can I increment this number to be pageID+1?</p>
