Please refer to the fiddle at http://jsfiddle.net/D5ss8/458/
<ul class="bjqs-controls v-centered">
<li >test</li>
<li>test</li>
</ul>
<ol class="bjqs-markers h-centered">
<li>test2</li>
<li>test3</li>
</ol>
<input type="button" value="click me" />
JavaScript:
$('input').click(function() {
$('ul.bjqs-controls v-centered').empty();
$('ol.bjqs-markers h-centered').empty();
});
I want to remove "li" and "ol" from DOM using its class name. Here now, both contains two class names due to which empty function is now working. It works when single class name is given.