Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>#558C89</div>
- $(document).ready(function() {
- $(document).on('click', 'div', function() {
- $(this).css('background-color', $(this).
- });
- });
- $(document).ready(function () {
- $('div').each(function () {
- $(this).css('background-color', $(this).text());
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement