Tsallaka zuwa abun ciki
Justice Tech School

data Method

data stores values on elements.

Example
$("#a").data("id", 42);
var id = $("#a").data("id");
$("#a").removeData("id");

Exercise

Store data.

$("a").("k", 1)

Quiz Test

What does data store?

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