I want javascript to change the text field design for the current field.
I only have one function that it does and wants to update element ID for current field onclick.
Therefore, there can be a function which gets the element id for the current click, saves the field and as an object, and the second which changes the design of the field.
I do not want this function to be used for only one field, getElementsById will not work ..
Try to use this AA base
// Set the binding first, target all the input elements or in some way the document. GetElementsByTagName ('Input'). Onclick = function () {var savedId = this.id; // Existing ID somewhere this.id = 'NEW_ID'; // Set new id // manipulate element design as you want} You should not change the elements of the elements. Try removing a class or something.
No comments:
Post a Comment