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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -