Jquery Hide Function in PHP
<p>I have a while statement that is echoing about 10 different stories. Every story has a user comment. When clicking the button edit I want one of the functions to hide the user comment. Here is the code I wrote to try and make it happen. Let me know if you think of why this wouldn't work.</p>

<pre><code>&lt;script&gt;
    $(".edit_&lt;?php echo $story_id ?&gt;").click(function () {
    $(".comment_&lt;?php echo $story_id ?&gt;").hide("fast");
     });    
&lt;/script&gt;
&lt;?php
if (!empty($user_comment))
echo "
&lt;p class='user_comment comment_$story_id'&gt;&lt;strong&gt;$user_comment&lt;/strong&gt; &lt;a class='edit_story_comment edit_$story_id'&gt;Edit&lt;/a&gt;&lt;/p&gt;";
else
echo "&lt;p id='user_comment_$story_id'&gt;&lt;span id='edit_no_story_comment'&gt;Edit&lt;/span&gt;&lt;/p&gt;";
?&gt;
</code></pre>
