At my web page, I have several text box controls (eg. Input type=”text” …)
What I would like to do is display every ID for every text box whenever or whatever text box i make focus event.
I already try this.
alert($("*:focus").attr("id"));
But it return undefined message.
So, Please let me know is there any way to know that which text box, i mean text box ID, is I already focused dynamically.
Setting a variable on focus, and removing the variable on blur will do the job: