jQuery or other libraries for contact forms

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;
}
1 Like