Jquery cancel button input placeholder text
<p>I asked this question earlier, but asked without the proper info, here it goes again. What i need to happen is for the cancel button "list_btn_cancel" to close the popup activity and to replace what was imputed with the inputs placeholder.
This table is the input.</p>

<pre><code>    &lt;table  width="100%" style="line-height:0px" &gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;p&gt;1.&lt;/p&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input name="activities_thoughts_1" id="activities_thoughts_1" type="text" style="width:345px;" placeholder="Type or click list button &amp;gt;" /&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="button" id="thoughts_1"  class="list_btn ext_thoughts" value="List &amp;gt;" /&gt;&lt;/td&gt;
        &lt;/tr&gt;

        &lt;/table&gt;


    **this table is the popup**

    &lt;div id="popup_activity" class="box_list"&gt;

          &lt;div id="list_question_btn"&gt;&lt;/div&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id="activity_area_content" style="padding-bottom:5px;" &gt;
    &lt;form name="form1"&gt;   

    &lt;table class="style2" width="100%"&gt;
        &lt;tr&gt;&lt;br /&gt;
          &lt;td width="8%" align="right"&gt;&lt;input name="thoughts_list" id="thoughts_list_0" class="thoughts_list" type="radio" value="It is just terrible that my child will not be a normal kid" /&gt;&lt;/td&gt;

      &lt;/table&gt;
    &lt;/form&gt;
    &lt;/div&gt;
  &lt;/div&gt;

    &lt;div&gt;&lt;table&gt;&lt;td&gt;&lt;a style="margin-left:290px" onclick="closeDialog('popup_activity');"&gt;&lt;input type="button" id="thoughts_cancel"  class="list_btn list_btn_cancel" value="Cancel &amp;gt;" placeholder="Type or click list button &amp;gt;"  /&gt;&lt;/a&gt;&lt;/td&gt;&amp;nbsp;&lt;td&gt;&lt;a onclick="closeDialog('popup_activity');"&gt;&lt;input style="margin-left:10px" type="button" id="close_thoughts"  class="list_btn list_btn_close" value="Close &amp;gt;" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;

    **Here is the script**
    $('.list_btn').button();

    $('#popup_activity').css("display","none");
    $('#list_help').css("display","none");

    $('.ext_thoughts').click(function(){
        openDialog('popup_activity');
        btn_id= $(this).attr('id');
    });

    $('.thoughts_list').click(function(){
        ( $(this).attr('id'));
        $("#activities_" +btn_id).val($(this).val());
    });
</code></pre>
