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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -