# Javascript not working

**URL:** <https://community.ofelia.com/t/javascript-not-working/11467>\
**Category:** Q&A\
**Created:** [19 January 2023 09:53 UTC](https://community.ofelia.com/t/javascript-not-working/11467 "2023-01-19T09:53:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy.orion](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jeremy.orion](https://community.ofelia.com/u/jeremy.orion)\
**Post date:** [19 January 2023 09:53 UTC](https://community.ofelia.com/t/javascript-not-working/11467/1 "2023-01-19T09:53:31Z")

</div>

Hello I am trying to use a script to hide element in my form.  
When I'm in the browser console, I have achieved to display an alert on checkbox check or uncheck, so it's working, but when I put the same code inside my JS script asset, it's not working.  
Have you an idea why it's not working?  
Thanks
