Home › Forums › JavaScript › How to set values to custom attributes in Jquery › Reply To: How to set values to custom attributes in Jquery
August 8, 2013 at 2:25 am
#146100
Participant
Hi george,
i want to add value to data-parentID
. i want to store some value, in this attribute, which later can be used.
I am storing the parent id in this data-parentID, and later fetching this vlaue when returning.
In the above ex, when you inspect the input field dataparentId
is empty