how to add css class using javascript

 <p>want to dissable my anchor tag on click that button</p> 

Answer
 

you can use addclass() in javascript

$('#id').addclass('classname');