How can one increment a global variable?
<p>I have a <a href="http://jsfiddle.net/rayd360/JFCPB/2/" rel="nofollow">fiddle</a></p>

<p>here is my JS:</p>

<pre><code>$(document).ready(function() {

    window.qNum = 0;
    window.$oClone = $('#pq0').clone();      

    addForm();
});


$('.addForm').live('click', function addForm() {   
    var $clone = $oClone.clone().attr('id', 'pq' + qNum + 1);
    // insert the new element after the last "duplicatable" input field
    $('#pq' + qNum).after($clone);
});
</code></pre>

<p>I am trying to increment my variable 'qNum' a the end of my function 'addForm'.
This will increment the ID so i can find contents easier later in my project.</p>

<p>I am trying to add a ++qNum; at the end of the function but it is breaking the script, it won't run if i add it.</p>

<p><a href="http://jsfiddle.net/rayd360/JFCPB/3/" rel="nofollow">Here</a> is my test that won't work with the changes.</p>
