Please see the code below:
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
</head>
<body>
<select>
<option>one</option>
<option>two</option>
<option>three</option>
<option>four</option>
<option>five</option>
</select>
<script>
$("select").val("TWO").trigger("change");
</script>
</body>
</html>
In this case option is not set with the value "TWO" . But if I change as :
$("select").val("two").trigger("change");
Then it works. How can I ignore case while triggering change for select?