title: wp_dequeue_script for child theme to replace script
body: <p>I have a child theme and I am able to add the script I want to use to replace some theme functions and replace the some of the buttons.</p>
  
  <p>But I cannot remove the old button so they are both showing up on top of each other. How can I remove the parent js script?</p>
  
  <p>here is my <code>function.php</code> for the child theme</p>
  
  <pre><code>function replace_scroll(){
      // Remove the Default JavaScript    
      wp_dequeue_script( 'dp-js' );
  
      // Add your own script  
      $js_url = get_bloginfo('stylesheet_directory') . '/js';
      wp_enqueue_script('dp',"$js_url/dp1.scripts.js"); 
  } 
  add_action( 'wp_enqueue_scripts', 'replace_scroll' ); 
  </code></pre>