Setting the selected option in a dropdown after receiving a result from ajax call

Setting the selected option in a dropdown after receiving a result from ajax call

Asked on December 20, 2018 in knockout js.
Add Comment


  • 2 Answer(s)

        User mention the optionsValue binding on the  product select to be ‘value‘. This property is covered  by the value binding to product.

        Try the following code for this :

    self.product(resultProducts[2].value);
    

    Answered on December 20, 2018.
    Add Comment
    Answered on December 20, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.