css - How to select all classes inside a class with jQuery selector -


how go selecting classes in class using jquery selector? think $(".content .*").click(); work.

in addition, on click of class in .content want store class name of clicked class in variable.

here selector elements have @ least 1 class specified

$('.content [class]') 

or here elements

$('.content *') 

or better:

$('.content').on('click', '*', function() { //handler here }); 

your second question doesn't make sense , needs rephrased


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -