jQuery slideUp() Method (original) (raw)
Last Updated : 18 Nov, 2022
The slideUp() is an inbuilt method in jQuery which is used to hide the selected elements.
Syntax:
$(selector).slideUp(speed);
Parameter: It accepts an optional parameter "speed" which specifies the speed of the duration of the effect.
jQuery examples to show the working of slideUp() method:
Example 1: In the code below, no parameter is passed to this method.
HTML `
This paragraph will get hide.
Slide up`
Output:
Example 2: In the below code, speeding parameter is passed to this method.
HTML `
This paragraph will get hide.
Slide up`
Output: