Musical Shore
Musical Shore

Reputation: 1381

How do I reset a knockout select control to the optionCaption selection?

I have tried selectBox(0) but that just clears the dropdown. I have also tried selectBox(null) and selectBox(undefined), the results are the same.

Upvotes: 0

Views: 226

Answers (1)

Fabio
Fabio

Reputation: 11990

That's strange, select(undefined) should work. Take a look at this example: https://jsfiddle.net/kau0xhgy/1/

Upvotes: 1

Related Questions