Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createlabel(){
- var selectedColor;
- $('.colors > .fa-check').each(function(){
- if($(this).is(":visible")){
- selectedColor = $(this).closest('.colors').attr('id');
- }
- });
- $(".labellists").hide();
- console.log(selectedColor);
- switch(selectedColor)
- {
- case "green":
- $("#greenlist, #greenlist > .fa").show();
- break;
- case "yellow":
- $("#yellowlist, #yellowlist > .fa").show();
- break;
- }
- }
Add Comment
Please, Sign In to add comment