^Listen to Otto Sisir!
This is what I usually do for enqueueing custom js on the admin side, ONLY for my plugin's settings page...
`add_action('admin_print_scripts-settings_page_<your-settings-page-slug>', 'add_my_scripts');
function add_my_scripts()
{
//We can include as many Javascript files as we want here.
wp_enqueue_script('pluginscript', plugins_url('/js/script.js', __FILE__), array('jquery'));
}
`
By the way, all you can do is use 'wp_head' hook and call wp_enqueue_script('jquery') in the function, to use jquery on the frontend (theme) (same way you can include any Javascript library that is inside WP's js folder). I don't understand why and what you're doing by this... wp_register_script( 'jquery', '/'. WPINC .'/js/jquery/jquery.js');
!
wp_register_script( 'jquery', '/'. WPINC .'/js/jquery/jquery.js');