jquery - Switch HTML ID Attribute Value Between HTML Text-Boxes Using JavaScript -
In my HTML form, I have a heap of HTML text boxes (more than 2) when the id attribute is empty for the first time The HTML page loads. But when the user clicks on a text box, the ID must be "active". Others should be empty when the user clicks on the other, the id of the previous text box must be empty. The id of the new text box must be "active" & lt; Input type = "text" name = "test" id = "active" & gt; & Lt; Input type = "text" name = "test" id = "" & gt; & Lt; Input type = "text" name = "test" id = "" & gt; & Lt; Input type = "text" name = "test" id = "" & gt; & Lt; Input type = "text" name = "test" id = "" & gt; & Lt; Input type = "text" name = "test" id = "" & gt; How can I do this using JavaScript? Can anyone help me solve th...