0
Opa! Was needing that when the function was executed, the class that the #body
would receive, were random among the existing ones. Example:
$(document).ready(function(){
$('#random').click(function(){
$('#body').addClass('red');
});
});
When running #Random choose a value between ('red', 'green', 'blue', 'Yellow') and apply to .addClass
.
Some Jquery god can help me with that?
It works, but only once. In this case, I wanted the user to change color whenever he wanted. Is it possible? ;D Thanks.
– Daniel Bonifácio
I modified the answer so that it can meet what you want.
– Rubico
Perfect! It was the way I wanted it :D Thank you!!!
– Daniel Bonifácio
always good to help ;)
– Rubico