Answers for "put vlaue custom data attributes jquery"

1

set custom data attribute jquery

//set the custom data value
let mainDiv = $('#yourDivId').data('anyName', value);
//access the custom data value
mainDiv.data('anyName');
Posted by: Guest on May-27-2021

Code answers related to "put vlaue custom data attributes jquery"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language