I am trying to load the chosen library: http://harvesthq.github.com/chosen/
I am enqueuing a .js file as below:
wp_register_script( 'js_custom', plugin_dir_url( __FILE__ ) . 'js/jquery.js', false );
wp_enqueue_script ( 'js_custom' );
Inside the .js file I loading chosen like this:
jQuery(document).ready(function($){
$('.chzn-select').chosen();
});
But I keep getting this error:
TypeError: Result of expression 'jQuery(".chosen").chosen' [undefined] is not a function.
js/jquery.js? – s_ha_dum Feb 13 at 23:28