About deleting previous div using jquery
<p>I have question i.e how can i select a previous div
CODE:-</p>

<pre><code>if($i &gt; $start_from){
                echo "&lt;div id=\"blog$i\"&gt;&lt;h1 style=\"padding-top:30px; font-size:14px;\" id=\"shareContent\"&gt;&lt;a target=\"_blank\" href=\"$url\"&gt;$title&lt;/a&gt;&lt;br /&gt;&lt;/h1&gt;
                $desc
                &lt;br /&gt;
                &lt;p&gt;&lt;em&gt;hahaquotes, DATED: $date, URL: &lt;a target=\"_blank\" href=\"$url\"&gt;$url&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
                &lt;div class=\"applyLink\" style=\"width:720px; padding-right:12px; margin-top:20px;\"&gt;
                &lt;p&gt;&lt;a target=\"_blank\" href=\"$url\"&gt;READ&lt;/a&gt;&lt;span style=\"float:right; cursor:pointer;\"&gt;&lt;a class=\"delete\"&gt;DELETE&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
                &lt;/div&gt;&lt;/div&gt;";
                if($i == $start_from + 4) break; 
                }
                }
</code></pre>

<p>This is my code When i click on DELETE the whole div should be deleted the id for div is dynamically created how can i achive this using jquery. Please Help me Thank you in advance</p>
