Hello Friends, I’m trying to add a name field to a paragraph, but at the same time i want to disabled the input field with the same click event, and change the ‘add player’ button to ‘update player’, and enable the input for a change name, for somehow i cannot get that functionality working, only until disabled, but cannot get the enabled working back, maybe with some toggle but using the if else with an addEventListener. Hope you can help and contribute, thanks… Here is the link. on codepen.
Is this what you’re going for?
Its almost there tho, i think its what i want except that the when you add a player, and the player gets add, but when you update the innerHTML goes away, it supposed to stay and make the update.