I have the following code to get me the id of what ever input is in focus:
$('#searchColumnFields input').focus(function(){
thisId = $(this).css('id');
$(this).css('border-color', '#CCEBFF');
pos = $(this).position() ;
$('#searchHelper').html(thisId);
$('#searchHelper').fadeIn(250).css('left', pos.left-20);
})
However, thisId keeps coming back null.
What am I doing wrong?
Did you mean
or