JSFiddle - React, Tailwind, and code Playground

by anay1231

HTML

<select id="assignment-type-dd">
<option>test</option>
<option>hellow</option>
</select>

JavaScript

var capitalizeMe = "";
$("#assignment-type-dd option").each(function() {
 capitalizeMe = $(this).text();
  $(this).text(capitalizeMe.charAt(0).toUpperCase() + capitalizeMe.substring(1));
});