I'm developing a plugin and I'd like to use colorbox in my plugin . So I use wp_enqueue_script('jquery');
but it doesn't work . Then I search for it and add the following code and it is working now . But why should I deregister jquery ?
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js', false, '1.8.1');
wp_enqueue_script('jquery');