height: 150px; Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. Definition and Usage. The short answer is: use replace () of jQuery and mention the space you want to remove. Replace the first
element with new text: $("button").click(function() ... Specifies a function that returns the content to replace index - Returns the index position of the element in the set; Try it Yourself - Examples.