Tag list
How do I make an tag list?
What is a tag list? How do you make a tag list? This script and codes were developed by Parth Viroja on 03 September 2022, Saturday.
Tag list - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tag list</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Tag List</h1>
<div class="tag-wrapper"> <ul class="tag-ul"> <li class="add"> <input type="text" class="new-tag"> </li> </ul>
</div> <script src='http://code.jquery.com/jquery-1.11.2.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Tag list - Script Codes CSS Codes
* { padding: 0px; margin: 0px; outline: none; font: 16px "Calibri"; font-weight: lighter; later-spacing: 1px; list-style-type: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { overflow: hidden; overflow-y: auto; height: 100%;
}
h1 { padding: 40px 0px; font-size: 4em; color: #54B2D3; text-align: center; text-transform: uppercase;
}
.tag-wrapper { disply: block; background: #54B2D3; margin: 10px auto; width: 60%; padding: 10px;
}
.tag-ul { position: relative; display: block; padding: 4px; margin: 4px;
}
.tag-ul li { display: inline-block; vertical-align: middle; background: #fff; padding: 6px 8px; padding-right: 26px; margin: 1px 2px; border-radius: 2px;
}
.tag-ul li i.remove { position: absolute; margin-left: 4px; margin-top: 2px; display: inline-block; padding: 0px; color: #999; font-size: 16px; cursor: pointer;
}
.tag-ul input { display: inline-block; background: none; width: 100px; border: 0px; padding: 4px 0px; border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.tag-ul li.add { background: none;
}
Tag list - Script Codes JS Codes
$(document).ready(function() { $('.new-tag').focus(); $(document).on('click', '.tag-ul .remove', function() { $(this).parents(".tag").remove(); }); $('.tag-ul .new-tag').keypress(function(event) { if (event.which == '13') { if ($(this).val().trim() != '') { $('<li class="tag"><label>' + $(this).val() + '<input type="hidden" name="tags[]" value="' + $(this).val() + '" /><i class="material-icons remove" onclick="$(this).parents(".tag").remove();">clear</i></label></li>').insertBefore('.add'); $(this).val(''); } } }); });
Developer | Parth Viroja |
Username | parthviroja |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,358 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
3D-box | 2,346 Kb |
Custom checkbox and radio with menu | 2,288 Kb |
Filter, sort grid item | 2,592 Kb |
Jquery Tab | 2,367 Kb |
Upload Image Form | 2,689 Kb |
Right side menu tab with icon | 2,480 Kb |
Responsive Card Design | 2,696 Kb |
Dynamic Radial Menu Using Javascript | 3,008 Kb |
Treeview using Angular | 4,244 Kb |
Page load animation | 2,511 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Flip test | Madhes | 1,635 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Realistic Buttons | Stoypenny | 2,248 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Flexbox playground | Enxaneta | 5,418 Kb |
Loading... | Adamjacob | 2,384 Kb |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!