jquery selector by id and class code example
Example 1: jquery selector this and class
$(".class").click(function(){
$(this).find(".subclass").css("visibility","visible");
});
Example 2: id in class selector jquery
In jQuery, the class and ID selectors are the same as in CSS. If you want to select elements with a certain class, use a dot ( . ) and the class name. If you want to select elements with a certain ID, use the hash symbol ( # ) and the ID name.