Answers for "get value of custom data attribute jquery"

3

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 "get value of custom data attribute jquery"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language