To Do List with jQuery
How do I make an to do list with jquery?
Using local storage to make a cute to do list <3. What is a to do list with jquery? How do you make a to do list with jquery? This script and codes were developed by Ash on 09 August 2022, Tuesday.
To Do List with jQuery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>To Do List with jQuery</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <form class="form" method="post" action="form-submission.html">
<div class="top"> <label for="input">Add Item:</label> <input class="input" id="input"> <button class="submit" type="submit">Add</button> </div><!--top--> </form> <ol id="listy"></ol> <button class="delete" type="delete">Delete Selected</button> <script src="http://code.jquery.com/jquery-2.1.3.min.js"></script> <script src="forms.js"></script> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
To Do List with jQuery - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Karla);
body{ width:400px; max-height:600px;
background:url(http://33.media.tumblr.com/2c8fac4b7cd0707556472f2c1b53a446/tumblr_inline_mvmulemQAV1qid2nw.png); font-family: 'Karla'; color:#8a2316;
}
.highlight{ background-color: #FFDBCC; width:100%; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}
ol{ -webkit-padding-start: 15px;
}
li{ padding:5px; margin:5px; background-color: #fff; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; width:100%; border: 2px solid #FFDBCC;
}
.looky{ opacity: 1 !important;
}
h2{ -webkit-margin-before: 0.2em; -webkit-margin-after: 0.2em;
}
.top{ height:22px; width:400px; padding:8px; background: #fff; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; border: 2px solid #FFDBCC;
}
button{ -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; border-radius: 10px; background-color:#FFEEE8; border: 1px solid #8A2316; text-align: center; color:#8a2316;
}
input{ -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; border-radius: 10px; background-color:#FFEEE8; border: 1px solid #8A2316; color:#8a2316; padding-left: 5px;
}
To Do List with jQuery - Script Codes JS Codes
var $form = $('.form');
var $input = $('.input');
var $listy = $('#listy');
var $li = $('.li');
$form.on('submit', function (e) { e.preventDefault(); var $li = $('<li class="looky">'); var $inputH2 = $('<h2>').html($input.val()); $li.append($inputH2); $li.fadeIn(); $listy.append($li); $input.val(" "); //remove text after input submitted localStorage["myKey"] = JSON.stringify($('#listy').html());
});
$listy.on('click', 'li', function () { $(this).toggleClass('highlight');
});
$('.delete').click(function () { $('.looky.highlight').remove(); localStorage["myKey"] = JSON.stringify($('#listy').html());
});
$(function() { if (localStorage["myKey"] != null) { var contentsOfOldDiv = JSON.parse(localStorage["myKey"]); $('#listy').html(contentsOfOldDiv); }
});
Developer | Ash |
Username | littleginger |
Uploaded | August 09, 2022 |
Rating | 3 |
Size | 2,547 Kb |
Views | 52,624 |
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 |
Playing with Buttons | 3,099 Kb |
Contact Envelope | 3,257 Kb |
Cute Tags | 3,091 Kb |
Codepen profile CSS | 2,345 Kb |
Squares | 2,348 Kb |
Star Thing | 2,982 Kb |
Sky Clock | 2,973 Kb |
RSS Feed | 3,083 Kb |
Travel Site Demo | 2,899 Kb |
PKMN | 3,802 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 |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Snow collision | Wojtek1150 | 3,542 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 Kb |
Popover Example | Seanboom | 2,429 Kb |
Addthis_button | Esambino | 1,691 Kb |
A Pen by Michael Parenteau | Michaelparenteau | 2,133 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 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!