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 form.md file using the {assets:inline_js} function?

Thanks,

Brad

Should be something like this:

{assets:inline_js}
$(document).ready(function() {
  $("a.external").attr("target","_blank");
});
{/assets}

No <script></script> tags needed.

It goes in the header of the form.md 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!