JSFiddle - React, Tailwind, and code Playground

by jjay225

HTML

<input type='text' id='uptest' value='m' />

JavaScript

var test='m';
var val1= $('#uptest').val().toUpperCase();
alert(val1);
if(val1!='M'){alert('1');}else{alert('0');}