mercredi 19 avril 2017

JAVASCRIPT Replace HTML element with another

how can an HTML element/tag for example this:

<input type="checkbox" id="1234"  checked onClick="replace(1234)"> I have a car<br>

replaced with this when clicked

<input type="checkbox" id="1234" unchecked onClick="replace(1234)"> I have a car<br>

I want to replace only the input tag and change HTML code in tha position

Thanks




Aucun commentaire:

Enregistrer un commentaire