Adding and Removing Element
How do I make an adding and removing element?
What is a adding and removing element? How do you make a adding and removing element? This script and codes were developed by Esterling Accime on 23 January 2023, Monday.
Adding and Removing Element - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Adding and Removing Element</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<div class="container" >
<div class="little-container"> <h1> Message:</h1> <input type="text" name="imessage" placeholder="Put your message here..." class="text">
<button class="add btn btn-primary">Add Message</button>
<button class="remove btn btn-danger">Remove Item</button>
</div>
<ol class="hey">
</ol>
</div>
<p class="add-class"></p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Adding and Removing Element - Script Codes CSS Codes
.container{ width:550px; height:500px; background-color:#008B8A; color:black; border-radius:5px; overflow:scroll;
}
.little-container{ margin-left:20px; position:relative; top:5px;
}
h1{ color:white;
}
.text{ border-radius:10px; width:300px; height:40px; padding-left:20px;
}
li{ background-color:#FAEBD7; padding-left:10px; border-radius:10px; margin-top:8px; width:280px; height:40px;
}
Adding and Removing Element - Script Codes JS Codes
$(document).ready( function() { $(".add").click(function (){ var addElement = $("input[name=imessage]").val(); $(".hey").append("<li>" +addElement+ "</li>"); });
$(".remove").click(function() { $("li:last").remove(); }); });
Developer | Esterling Accime |
Username | accimeesterlin |
Uploaded | January 23, 2023 |
Rating | 3 |
Size | 2,119 Kb |
Views | 4,048 |
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 |
Scrolling Effects | 1,708 Kb |
According and hover jQuery tax | 2,057 Kb |
Calendar Event | 1,446 Kb |
WikiPedia Viewer | 5,099 Kb |
MyPortFolio | 6,996 Kb |
Learning React | 1,901 Kb |
Typing Machine | 1,611 Kb |
Twitch Tv App | 5,452 Kb |
CSS Hover Effects | 2,008 Kb |
A Pen by Esterling Accime | 3,820 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 |
Test | Dviate | 2,668 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
FontAwesome icons with animation | Nicotinell | 2,083 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Portfolio page | Bhavya_j | 2,804 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
About Us | Francescaedits | 1,902 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
Cars going | Netoguimaraes | 1,699 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!