JSFiddle - React, Tailwind, and code Playground
by shane3
HTML
<textarea id="my_ta_1">Example 1</textarea>
<textarea id="my_ta_2">Example 2</textarea>
<textarea id="my_ta_3">Example 3</textarea>
JavaScript
var text_to_match = "Example 2";
$('[id*="my_ta_"]').each(function(){
var cur_value = $(this).val();
if(cur_value === text_to_match){
$(this).attr('disabled', 'disabled');
}
});