1

Is there any way to select default value in HTML <select>

Suppose my <select> is:
<select>
<option value="">----<option>
<option value="test">test<option>
<option value="test1">new test<option>
</select>

I want to display "----" as default in <select> in PDF

I have tried many ways but no success.

Please help me ...................

2

I'm not sure i understand your question (you 1st talk about HTML, then about PDF).
By the way, here's the solution in HTML, I dunno if html2pdf is able to convert it :

<select>
<option selected="selected" value="">----</option>
<option value="test">test</option>
<option value="test1">new test</option>
</select>
avatar

3

the selected parameter does not wok in HTML2PDF for now... sorry !
Ancien pseudo : lolo