How to run JQuery in a JavaScript function
<p>I am trying to make a dynamic function but i am having trouble because i cant seem to run my JQuery code inside of a JS function. I have a working example <a href="http://jsfiddle.net/UpEvK/1/" rel="nofollow">here</a>. </p>

<p>I have a second example <a href="http://jsfiddle.net/UpEvK/" rel="nofollow">here</a>. the only difference between the two JsFiddle's is that i switched the call function from:</p>

<pre><code>$('#btnAdd').click(function() {
</code></pre>

<p>to this calling function:</p>

<pre><code>function addBtn(){
</code></pre>

<p>and the same on the delBtn. the reason i want to do this is so i can pass an argument so i know if i want to add another question  field or an answer  field.</p>
