Whats wrong in this jQuery selector?

Discussion in 'jQuery' started by shubhamjain, Dec 12, 2009.

  1. #1
    Whats wrong in this jQuery selector?

    $("td:odd[style*=overflow]").each(function(){alert($(this).html());});
    
    Code (markup):
    OR

    $("td[style*=overflow]:odd").each(function(){alert($(this).html());});
    
    Code (markup):
    It isnt working but following does.

    $("td:odd").each(function(){alert($(this).html());});
    
    Code (markup):
    OR

    $("td[style*=overflow]").each(function(){alert($(this).html());});
    
    Code (markup):
     
    shubhamjain, Dec 12, 2009 IP