jquery selector type and class code example

Example 1: jquery selector this and class

$(".class").click(function(){
     $(this).find(".subclass").css("visibility","visible");
});

Example 2: jquery select input with class

$("input.myClass:checkbox")

Example 3: jquery class selector

$('.class').jquery_function();

Example 4: name class and id referance in ajax

$('td[name ="tcol1"]')   // matches exactly 'tcol1'
$('td[name^="tcol"]' )   // matches those that begin with 'tcol'
$('td[name$="tcol"]' )   // matches those that end with 'tcol'
$('td[name*="tcol"]' )   // matches those that contain 'tcol'