JSFiddle - React, Tailwind, and code Playground

HTML

<select id="test"> 
    <option value="13">11</option> 
    <option value="11">aa</option> 
<select> when i use $("#test").val("11") to set value to select element,the selected one is option value="13" but not option value="11"

JavaScript

$('#test').val('11'); //sets the selected itm to the option with the value 11.