JSFiddle - React, Tailwind, and code Playground
by vietean
HTML
<input type="text" name="toi-yeu-em" />
<input type="text" name="toi-anh-em" />
<input type="text" name="toi-yeu-anh" />
JavaScript
$(":input:not([name*='yeu'])").val("Haha");
by vietean
<input type="text" name="toi-yeu-em" />
<input type="text" name="toi-anh-em" />
<input type="text" name="toi-yeu-anh" />
$(":input:not([name*='yeu'])").val("Haha");