Grav Assets Plugin

I have a Registration from that uses some simple javascript code in the head of the page to validate the email address input field.

How do I get the code listed below into the head of my file using the {assets:inline_js} function?



Should be something like this:

$(document).ready(function() {

No <script></script> tags needed.

It goes in the header of the file?

Because when I do I get the following error:

Symfony \ Component \ Yaml \ Exception \ ParseException

Unable to parse at line 10 (near “{assets:inline_js}”).

In the body of the .md, not the header.

Thanks again!