JSFiddle - React, Tailwind, and code Playground
by levchenko_d
HTML
<button id="b">hide</button>
<p id="one">text</p>
<p id="two">text</p>
JavaScript
var h = function(){
for(var i=0; i<arguments.length; i++) {
document.getElementById(arguments[i]).style.display = "none";
}
}
document.getElementById('b').onclick = function(){
h('one','two');
}