I have a select list which when it changes I want to update the data attribute value of another element on my page but its just not changing. To keep things simple, I have tried changing the data attribute value of the select list itself and nothing happens. Here is my code:
That's where my problem is, I was expecting it to update int he DOM inspector as it does with class changes but it was nto changing, hence my assumption it was not working. Best start using the console instead from now on!
Leave a comment on doogler's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic