Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to set values to custom attributes in Jquery Reply To: How to set values to custom attributes in Jquery

#146100
gowda24
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