I'm learning javascript and AngularJS. I made this little code for something (we made it in AngularJS format), and we need to make this same logic but using only javascript.
The color of a botton changes to other when it's available or unavailable.
Can someone help me with this and tell me the logic?
$scope.saveButton= function(){
$( "#saveButtonPics" ).removeClass( "attachment-space-available" ).addClass( "attachment-boton-guardado" );
};