<select> <option value="" data-settings="{"related":"17","math":"400"}">......</option> </select> <script> const option = document.querySelector('option'); alert(option.dataset.settings) </script>