1$(".class").click(function(){
2 $(this).find(".subclass").css("visibility","visible");
3});
1$(".txtClass") => getElementsByClassName()
2
3$("#childDiv2 .txtClass") => getElementById(),
4 then getElementsByClassName()
5
6$("#childDiv2 > .txtClass") => getElementById(),
7 then iterate over children and check class
8
9$("input.txtClass") => getElementsByTagName(),
10 then iterate over results and check class
11
12$("#childDiv2 input.txtClass") => getElementById(),
13 then getElementsByTagName(),
14 then iterate over results and check class