Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

data component attribute

(data-component)data-* attributes gives us the ability to embed custom data attributes on all HTML elements.

eg . <a href="#" data-component="your-custom-value/string">

(now in the jquery you can use this value for anything (for eg. setteing the url/href attribute of this <a> tag)
 
PREVIOUS NEXT
Tagged: #data #component #attribute
ADD COMMENT
Topic
Name
1+7 =