JSFiddle - React, Tailwind, and code Playground
by Gourav Singh
HTML
<input type="text" id="one" value="1"/>
<input type="text" id="one" value="2"/>
JavaScript
$(function(){
$('input[type=text]').click(function(){
$('input[type=text]').each(function(){
if(!($(this).is(":focus"))){
//alert($(this).val());
$(this).attr('disabled',true);
}
});
});
});