php - Trouble adding custom javascript to a wordpress theme -


i've got wordpress site trying add custom javascript bit of functionality. can't seem javascript work. i've stripped javascript alert. i've looked around , seems should able add following functions.php make work.

<?php  wp_enqueue_script('schedule', get_bloginfo('template_url') .    '/schedule.js',array('jquery'),'1.0',true); ?> 

then current javascript function looks following now.

jquery(function(){alert('asd');}); 

what missing/what forgetting? able add css file in exact same fashion little confused not working.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -