How do I refresh a select field?

  • 0
    I have this code, but it just refuses to work. What is the problem?

    Select itself:
    <select name="statusSelect" class="form-control selectpicker" id="statusSelect" onChange="responderChangeStatus(this);">


    $('#statusSelect').val('').selectpicker('refresh');
    JavaScript David Dorsey, Jul 30, 2020

  • 1 Answers
  • 0
    I'm not a JQuery expert, but I would assign the selected attribute first if I understood the essence of the question correctly.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!