Answers for "set data-id value jquery"

1

set data-id value jquery

$('#mydiv').attr('data-myval', 'Undertaker'); // sets 
 $('#mydiv').attr('data-myval'); // gets
Posted by: Guest on October-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language