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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -