Show input text box when a checkbox is checked

Hi, I have a custom form. I want to display a user input text box when a check box is checked.
E.g.: When a user clicked on “e-mail check box”, an input text box should be displayed to enter email address.

The below is the code I used, but its not working. I shall appreciate if you could kindly let me know how to fix this.

I set the input text box as “Hidden on load”

import wixData from ‘wix-data’ ;
export function checkbox_click(event) {
if (( ‘#checkbox’ ).checked) {
$w( “#input” ).show();
}
}

The $w function is missing on this:

if ($w('#checkbox').checked){

Thank you very much