Determining if a div contains a table element in JQuery
- by fishiefishie
For my accordion, each time the user clicks on the header, i want to see if accordion-content contains a table, if not, generate one and add it to accordion-content. But how do you check if the current element contains a certain type of element?
<div class="a-header">
<ul><li></li></ul>
</div>
…