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. \[code\]<SCRIPT LANGUAGE="JavaScript">$(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->id_goals; ?><tr> <td style='vertical-align:top;'> <textarea name="stg<?php print $i;?>" id="short_goal" class="short_go"><?php print $row->goal_description?></textarea>\[/code\]</td> < td style='vertical-align:bottom;' nowrap> <span class='hidden'> echo $i </span> <a href=http://stackoverflow.com/questions/1991282/# class="removegoal" >Remove Goal