Jquery Remove Based on two attributes ( dynamic substitution )
<p>I have a DIV with below attributes</p>

<pre><code>&lt;div car_id='1' car_type='4'&gt;&lt;br&gt;GM&lt;a href="#" id="yt0"&gt;&lt;img title="Delete" src="/cardelete/images/delete.png" alt="Delete" /&gt;&lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>Basically it has two attributes</p>

<pre><code>car_id='1' car_type='4'
</code></pre>

<p>On my Ajax success function I want to remove the above . I am able to alert <strong>obj.car_id</strong>
and <strong>obj.car_type</strong></p>

<p>But that remove part is not working . Could some one provide the correct syntax for it ?</p>

<pre><code>"success"=&gt;'js:function(data){                                                             
    var obj = jQuery.parseJSON(data);
    alert(obj.car_id);
    alert(obj.car_type);
   $("div[car_id=obj.car_id][car_type=obj.car_type)".remove();    
</code></pre>

<p>}',</p>

<p>Thank You</p>

<p>Regards</p>

<p>Kiran</p>
