JSFiddle - React, Tailwind, and code Playground
by Pris Wiz
HTML
<div>
<div id="defaultEmail">This is the first one.
<input id="i1" type="button" value="one" />
</div>
<div id="changeEmail">And here we have number two.
<input id="i2" type="button" value="two" />
</div>
</div>
CSS
div #changeEmail {
display: none;}
JavaScript
$("input").click(
function() {
var theId = "#d" + $(this).attr('id');
$(theId).toggle().siblings().hide()
}
)