Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var colorBlocks = [
- 'yellow',
- 'green',
- 'blue',
- 'white',
- 'orange'
- ]
- $.each(colorBlocks, function (i) {
- $('#' + this).css("background", this);
- // When you use the alert you can see the boxes change color one by one
- // alert(something);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement