I have a dynamic video list based on a database. The data attribute 'data-video-id' of each list item is bound to a field videoId in the database.
I want to set the video-id based of the youtube player dynamically when the user clicks on a list item.
Is it possible to do this with an event action 'set property' ? How can I specify the data attribute 'data-video-id' of the selected list item ?
Or do I need to use the event action 'run javascript' ? How can I access the video-id property in javascript ?