This is probably super simple answer, but I just can't figure this out.
Basically, I've got a php page only starting with opening <?php
tag.
I've got a jquery script that I need to call on this page.
<script type="text/javascript">
$('input[name="_manage_item"]').click(function() {
$('input[name="_item"]')[this.checked ? "show" : "hide"]();
});
</script>
From what I researched, I need to load the script by placing
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
into the <head>
tags of the page.
But my page doesn't have the html <head>
or <body>
tags. Where do I call the script then ?
I tried to place it in front of the opening <?php
tag, but that broke the page.
What is the correct way of doing this ?