looking for some help with jquery, I’m really getting lost with this…
-
I tried to load jquery without generating conflicts, but I don’t get it.
Could someone give me some advice?The jQuery is running, but it has conflicts with other jQuery on the site.
I just need it for the backend and there just on one options page.
I just found is_admin() to check if you are in the backend.or did I load the jQuery the wrong way?
Here is what I’m doing at the moment.
`
if(is_admin()){
add_action(‘init’, ‘load_js’);
}
function load_js() {
## wp_deregister_script(‘jquery’);
wp_register_script(‘my-jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js’, false, ‘1.3.2’);
wp_register_script(‘my-jquery-ui’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js’,false,’1.7.1′);
wp_enqueue_script( ‘my-jquery’ );
wp_enqueue_script( ‘my-jquery-ui’ );
}
`Please help!
- The topic ‘looking for some help with jquery, I’m really getting lost with this…’ is closed to new replies.