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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -