font-size: 14px; By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax)So use $("h2").hide("fast", function(){ $("#hide").text("Show"); By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy, 8 Online Courses | 5 Hands-on Projects | 28+ Hours | Verifiable Certificate of Completion | Lifetime Access, Java Servlet Training (6 Courses, 12 Projects), Software Development Course - All in One Bundle. or share your feedback to help us improve. $(selector).animate( {parameters}, speed, callback_function); $ (selector) is to select html element on which this animation effect is being applied. Till this time no button is clicked.