Site icon Hip-Hop Website Design and Development

Uncaught TypeError: jQuery(…).slider isn’t a perform

i’m making an attempt to make use of the jQuery-ui perform: slider():
this is my code that i wrote contained in the jQuery(doc).prepared…:

jQuery("#slider-wp").slider()

and in my capabilities.php file i wrote this code to name the jQuery library particular to slider():

perform jquery_scripts(){
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-slider'); 
}

add_action( 'admin_enqueue_scripts', 'jquery_scripts');

when i loaded my web page i recevied this error:

i attempted to look into many ressources on the web however with out success.

thanks for the concepts…