I have a select sweet alert (select with options) and i would like to make a default value, is there anyway? i wanted to make "selected='selected' " but i can't find any option to make this achievable.
Help please.
Thanks
There's inputValue parameter which you can use for setting the initial value of a select: https://jsfiddle.net/L87xem1y/1/
I don't think this is documented on the website. inputValue doesn't mention select inputs
I don't think this is documented on the website.
inputValuedoesn't mention select inputs
Good point @Herz3h! I just improved the docs: https://sweetalert2.github.io/#input-value
Most helpful comment
There's
inputValueparameter which you can use for setting the initial value of a select: https://jsfiddle.net/L87xem1y/1/