javascript - jquery focus selector is not working -
i have tryed alert( $(":focus").attr("id") );
along tryed
$("input").each(function(){ $('#debug').val( $(this).is(":focus") + $('#debug').val()); });
the first 1 alerts ( undefined ) , second 1 fills debug selector false
any idea's? apearing :focus
i running jquery version 1.7.1 , testing in chrome
try doing way, approach i've typically taken on selector level determine if element of selector.
$(this).filter(":focus").size()
Comments
Post a Comment