Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get element attribute

$( "div" ).data( "role" ) === "page";
$( "div" ).data( "lastValue" ) === 43;
$( "div" ).data( "hidden" ) === true;
$( "div" ).data( "options" ).name === "John";
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #jquery #element #attribute
ADD COMMENT
Topic
Name
4+5 =