Jquery toggle template form

my code doesn’t work here anyone has any idea what’s the problem

<script type="javascript"> $(document).ready(function(){ $('.new-task').hide(); $('#addNewTask').click(function(){ $('.new-task').toggle(); }); }); </script>

`


Logo
add newTask
`

{{>submitTask}}

`





`