To Do List with jQuery

Developer
Size
2,547 Kb
Views
52,624

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 Previews

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); }
});
To Do List with jQuery - Script Codes
To Do List with jQuery - Script Codes
Home Page Home
Developer Ash
Username littleginger
Uploaded August 09, 2022
Rating 3
Size 2,547 Kb
Views 52,624
Do you need developer help for To Do List with jQuery?

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!

Ash (littleginger) Script Codes
Create amazing SEO content with AI!

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!