Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.color').on('click', function() {
- var className = $(this).attr('class');
- var splitClass = className.split(' ');
- alert('Selected ' + splitClass[1]);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement