Javascript - Input class bei onClick ändern
Hallo ich brauche dringend Hilfe..
Ich versuche bei einem onclick ereigniss die class in "color" zu ändern momentan sieht es so aus:
<input class="" onClick="this.className='color'" id="color_picker" readonly="readonly">
es funktioniert nicht ...
auch nicht mit
onClick="document.getElementById('color_picker').className='color'
<input class="" onClick="this.className='color'" id="color_picker" readonly="readonly">
es funktioniert nicht ...
auch nicht mit
onClick="document.getElementById('color_picker').className='color'
Please also mark the comments that contributed to the solution of the article
Content-Key: 151798
Url: https://administrator.de/contentid/151798
Printed on: May 2, 2024 at 22:05 o'clock
2 Comments
Latest comment