Set an event for a div with multiple class

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-04-17T00:43:25Z Indexed on 2010/04/17 0:53 UTC
Read the original article Hit count: 229

Filed under:

I am trying to set an event on a div whos parent has a class="classA classB"; My css is being applied but i cant figure out how to specify it with jquery. How do i set an event with jquery for this class combination

$('[class=classA classB]').live('click', function () {
        alert('a');
    });

html

<div class="classA classB">...moredivs...</div>

© Stack Overflow or respective owner

Related posts about jQuery