1Here is an example of how your jQuery script
2(in wp-content/themes/your-theme/js/your-scrript.js) might look:
3
4jQuery(document).ready(function($) {
5 $('#nav a').last().addClass('last');
6})
1add_action( 'wp_enqueue_scripts', 'add_my_script' );
2function add_my_script() {
3 wp_enqueue_script(
4 'your-script', // name your script so that you can attach other scripts and de-register, etc.
5 get_template_directory_uri() . '/js/your-script.js', // this is the location of your script file
6 array('jquery') // this array lists the scripts upon which your script depends
7 );
8}