jQuery(document).ready(function($){
alert("Hi");
});
I want to add jQuery script written above to WordPress site in body section, now my question is whether WordPress loads jQuery library by default or I need to add <?php wp_enqueue_script('jquery'); ?>
above the script?
We usually add <?php wp_enqueue_script('jquery'); ?>
while developing wordpress plugins but is the same enqueue script required while adding jQuery script manually in wordpress? (I am not intended to create WP plugin but just want to add jQuery code in WordPress site)