Neither. Use CSS! Much less overhead and doesn’t require any libraries.
<input type="checkbox" name="toggleInput">
<input type="text" name="myInput" value="blah blah blah">
input[name='toggleInput']:checked ~ input[name='myInput']{
display: block;
}
input[name='myInput']{
display: none;
}