using php array in jquery
<p>In the below code i have an array arrSGoal. On Click of RemoveGoal i need to delete or set the value to 0 for the  the id in the array.
Array is in php. dont know how to use in the jquery. </p>

<pre><code>&lt;SCRIPT LANGUAGE="JavaScript"&gt;
$(document).ready(function() {
$('a.removegoal').click(function(e)
    {
    e.preventDefault();
    //Getting the TR to remove it in case of successful deletion
    var objRow = $(this).closest('tr');
        objRow.remove();            
});

});


$arrSGoal[$i] = $row-&gt;id_goals; 
?&gt;

&lt;tr&gt;
  &lt;td style='vertical-align:top;'&gt;
   &lt;textarea name="stg&lt;?php print $i;?&gt;" id="short_goal" class="short_go"&gt;&lt;?php print   $row-&gt;goal_description?&gt;&lt;/textarea&gt;
</code></pre>

<p>&lt;/td&gt;
     &lt; td style='vertical-align:bottom;' nowrap&gt; &lt;span class='hidden'&gt; echo $i   &lt;/span&gt; &lt;a    href=# class="removegoal" &gt;Remove Goal</p>
