getmdl-select
getmdl-select copied to clipboard
Clear selected item by code
Hello, how can I clear selected value and set get-mdl-select to its initial state by javascript?
Thank you.
Hello! This solution worked for me:
document.querySelector('#select-text')[0].parentElement.MaterialTextfield.change(''); document.querySelector('#select-value').val(0);
This worked for me: getmdlSelect.init('.getmdl-select');