Use .is(): $('element').is('h1');
- jason On May 14, 4:27 pm, 703designs <[EMAIL PROTECTED]> wrote: > I want to check if a parent element is <h1>. How do I do that? The > best I know of now is to add a class to these and test hasClass() for > it.
Use .is(): $('element').is('h1');
- jason On May 14, 4:27 pm, 703designs <[EMAIL PROTECTED]> wrote: > I want to check if a parent element is <h1>. How do I do that? The > best I know of now is to add a class to these and test hasClass() for > it.