Should scripts be in head or body?
Put your functions in the head section, this way they are all in one place, and they do not interfere with page content.
If your is not placed inside a function, or if your script writes page content, it should be placed in the body section.
It is a good idea to place scripts at the bottom of the element..
Should jquery be in head or body?
It’s always a good practice to add jQuery code in footer i.e. just before the closing