the logged in user
`
MemberStack.onReady.then(function(member) {
console.log("member.membership-id: ", member.secret)
})
`
and the console gives me this log member.membership-id: 5f169336b63e0eb8469a55c9
_ secret changes(dynamically) to the id of the member logged in _
Now i have an attribute data-item-memberid without any value and want to attach the above logged value to this.
I'm looking to get like data-item-memberid = "5f169336b63e0eb8469a55c9"
Any idea? insights? i checked mdn docs but didn't worked out.
Look into setAttribute on mdn
Обсуждают сегодня