jQuery hide() with Examples

The hide() method in jQuery is used to hide selected elements.

Syntax

The syntax is as follows ?

$(selector).hide(speed,easing,callback)

Above, the parameter speed is the speed of the hide effect, whereas easing is the speed of the element in different points of the animation. The callback function is a function that executes after hide() method completes.

Example

Let us now see an example to implement the jQuery hide() method  ?







Exam Info

Examination begins on 24th December. The students are requested to submit project report before 15th December.

Output

This will produce the following output ?

Click the button "Hide" will hide the info ?

Now, display again by clicking "Display" ?

Updated on: 2026-03-11T22:50:47+05:30

364 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements