Math in jQuery: adding 2 variables math value together and then outputting them in HTML
<p>I am attempting to take 2 variables, perform math on them and then output them as a new 3rd variable.  Here's the basic logic I attempting to do:</p>

<pre><code>var A1 = [+ditto_iteration+]
var B1 = [+gallery_currentPage+]
var C1 = (B1-1)*3+A1+1
</code></pre>

<p>Then I need to take the value of the variable C and output in some HTML like so:</p>

<pre><code>&lt;a href="variable C1 here"&gt;link&lt;/a&gt;
</code></pre>

<p>So to clarify, I've got some programming that will output the value of [+ditto_iteration+] on page load.  Same with [+gallery_currentPage+].  I just need to be able to take the variable values of A1 and B1, perform the math as shown above and then replace a variable in the URL (in this case C1) with the resulting value of the math operation.</p>
