Oops! It was pointed out that when the function was executed, the class that #body
would receive would be random among existing ones. Example:
$(document).ready(function(){
$('#random').click(function(){
$('#body').addClass('red');
});
});
Running #random chooses a value between ('red', 'green', 'blue', 'yellow') and applies to .addClass
.
Can some JQuery god help me with this?