remove div onclick ( using remove )
<p>Following on from some comments of late, I have took the plunge and started playing with jquery.
I really am at very basic level, so be nice. If not please click away from the page and answer someone else, getting sick and tired of being marked down.</p>

<p>Ok I have some search results, that we are echoing the drill down criteria in a sdebar, so that user can amend their search. So would like to add the ability for user to click an icon ( set as button )
I have it all working, but, dont know how to set it up so that each of the elements is removeable, without generating tons of code (jquery ids etc etc )</p>

<p>Fiddle: <a href="http://jsfiddle.net/ozzy/sKeW5/" rel="nofollow">http://jsfiddle.net/ozzy/sKeW5/</a></p>

<p>js:</p>

<pre><code>$("input").click(function () {
  $("div").remove('.dave');
});
</code></pre>

<p>css:</p>

<pre><code>input[type=button]{background: url('dx.png');outline:none;border:none;background-repeat:no-repeat;cursor:pointer;width:11px;height:11px;}
</code></pre>

<p>html:</p>

<pre><code>&lt;div class="s_total clearfix dave"&gt;&lt;strong class="cart_module_search left"&gt;State:&lt;/strong&gt;&lt;span class="cart_module_search"&gt;Queensland&amp;nbsp;&lt;/span&gt;&lt;input type="button"/&gt;&lt;/div&gt;
&lt;div class="s_total clearfix"&gt;&lt;strong class="cart_module_search left"&gt;Region:&lt;/strong&gt;&lt;span class="cart_module_search"&gt;Brisbane&amp;nbsp;&lt;/span&gt;&lt;input type="button"/&gt;&lt;/div&gt;
&lt;div class="s_total clearfix"&gt;&lt;strong class="cart_module_search left"&gt;Category:&lt;/strong&gt;&lt;span class="cart_module_search"&gt;Home and Garden&amp;nbsp;&lt;/span&gt;&lt;input type="button"/&gt;&lt;/div&gt;
&lt;div class="s_total clearfix"&gt;&lt;strong class="cart_module_search left"&gt;Search Term:&lt;/strong&gt;&lt;span class="cart_module_search"&gt;Weber BBQ&amp;nbsp;&lt;/span&gt;&lt;input type="button"/&gt;&lt;/div&gt;
</code></pre>

<p>As you can see the first div I have appended dave to the class, but wondered what a cleaner way would be whilst still retaining control over each div element. I can give each of the divs a id, but again didnt want to generate tons of js code.</p>
