Tsallaka zuwa abun ciki
Justice Tech School

Storage and Cookies

Use localStorage with jQuery for simple saving.

Example
$("#name").on("input", function () {
  localStorage.setItem("name", $(this).val());
});
$("#name").val(localStorage.getItem("name") || "");

Exercise

Read saved.

localStorage.("name")

Quiz Test

What does localStorage hold?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.