“Multiple lines in a ternary operator's clauses”.
$(document).ready() Before you can safely use jQuery to do anything to your page, you need to ensure that the page is in a state where it's ready to be manipulated. Ready function in jquery example
Here's how to use jQuery on your site. Here's an example of some jQuery code DOMContentLoaded before the code calls .ready( handler ), the function handler will