change style onClick

windows

Guest
onClick=this.nameClass

Is there a way i can change a class when you click on a link?Yes. <a onclick="this.className='newclassname'">text</a>But do be cautious as it JS Based
 
Back
Top