Use js to determine whether the control gets focus


**Use JS to get the ID with the focus control: **

$("#textID").click(function(){
var act = document.activeElement.id;
if(act == "textID" ){
 alert("true");
}else{
 alert("false");
}
} );

Var act = $(document.activeelement).attr(” ID ”);   — — — — — — — — — — — — — — — — — — — — — — < Input type = “text” id = “textID >”