Show input text box when a checkbox is checked

The $w function is missing on this:

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