O
O
ololodf2021-07-01 12:35:52
JavaScript
ololodf, 2021-07-01 12:35:52

How to form the data attribute of the block depending on the selected options in the select list?

I have a div which has a data attribute:

data-uniform-inline='{
"formConfig": "feedback", 
"fields": {
   "newsId": "{news-id}", 
   "field2": "value2",
   "field3": "value3",
}}'


And there are 2 select lists that have their own options
. How to make it so that when the first select list is selected, the value2 value changes? And the same with value3

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question