Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery data

$( "body" ).data( "foo", 52 );
$( "body" ).data( "bar", { isManual: true } );
$( "body" ).data( { baz: [ 1, 2, 3 ] } );
$( "body" ).data( "foo" ); // 52
$( "body" ).data(); // { foo: 52, bar: { isManual: true }, baz: [ 1, 2, 3 ] }
Comment

PREVIOUS NEXT
Code Example
Javascript :: static js 
Javascript :: jquery select option value selected 
Javascript :: Key Type 
Javascript :: react detect page width 
Javascript :: Uncaught (in promise) cancel 
Javascript :: see all set variables chrome 
Javascript :: get duplicate value javascript 
Javascript :: javascript createelement innerhtml 
Javascript :: hashtable js 
Javascript :: type checking js vscode 
Javascript :: get user agent in js 
Javascript :: add items to a react array in hooks 
Javascript :: get key for value javascript 
Javascript :: jquery on multiple events 
Javascript :: how to add element to an object 
Javascript :: javascript slice 
Javascript :: react load script after render 
Javascript :: get milliseconds since epoch for 12am today javascript 
Javascript :: Open temporary webpage js 
Javascript :: javascript new date invalid date dd/mm/yyyy 
Javascript :: move last element of array to begining javascript 
Javascript :: how to toggle navbar using javascript 
Javascript :: switch to window in testcafe 
Javascript :: mongodb bulk update 
Javascript :: method chaining in javascript 
Javascript :: faker.js 
Javascript :: get local year in js 
Javascript :: add in to array mongoose 
Javascript :: change terminal shortcut vscode 
Javascript :: change li position in ul jquery 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =