What am i missing from jquery function in order to add value into a textarea
<p>I am trying to add some content into a textarea after the user has clicked on the "Add" button but nothing is happening. Is there anything I am missing?</p>

<p>Below is the jquery code which adds the selected content:</p>

<pre><code>         $(".add").on("click", function(event) {
    console.log("clicked");
    //lets get our Question Text... 
    var theQuestion = $("td:first-child", $(this).parent()).text();
    //the row is present, let's then make sure that the proper cell gets oru data. 
    if ($('.activePlusRow').length &gt; 0) {
        $('.activePlusRow').next('.textAreaQuestion').val(theQuestion);
        $('.activePlusRow').removeClass('activePlusRow');
    }

});

 $(".plusrow").on("click", function(event) {
    //adding a unique class for the purpose of the click. 
    $(this).addClass('activePlusRow');
});
</code></pre>

<p>Below is the textarea:</p>

<pre><code>  $('.questionTextArea').each( function() {

    var $this = $(this);
    var $questionText = $("&lt;textarea class='textAreaQuestion'&gt;&lt;/textarea&gt;").attr('name',$this.attr('name')+"[]")
                   .attr('value',$this.val());


    });
</code></pre>

<p>EDIT:</p>

<p>You can use the application to see for yourself. Below is how to use app:</p>

<ol>
<li>When you open the app click on the "Green Plus" button. A modal window will appear.</li>
<li>In the search box enter in "AAA", then click "Search".</li>
<li>Results of your search is displayed. Here is where the problem is. What I want is that when the user clicks on an "Add" button to add a "Question", it should close the modal window and add the "Question" into the top textarea, but it is not doing this.</li>
</ol>
