Use JS para obtener la identificación con control de enfoque:
Copiar código del código de la siguiente manera:
$ ("#Textid").
var act = document.activeElement.id;
if (act == "textid") {
alerta ("verdadero");
} Demás {
alerta ("falso");
}
});
Use jQuery para obtener IDS con control de enfoque: VAR ACT = $ (Document.ActiveElement) .ATTR ("ID");
---------------------- <input type = "text" id = "textID">