What is the correct syntax to embed JS from Jquery UI website in Drupal 7?
What should I put in JS file to make this work with Drupal 7?


(function($) {
Drupal.behaviors.myBehavior = {
  attach: function (context, settings) {

    //code starts
    $( document ).click(function() {
      $( "#toggle" ).toggle( "slide" );
    });
    //code ends

  }
};
})(jQuery);


See Working with JavaScript and jQuery for in-depth info.