X

All posts by: Admin

Using Method Chaining in jQuery

Using method chaining in jQuery helps to ensure that your code stays as lightweight as possible. Method chaining allows you to apply many methods to one single selector, thus limiting the amount of times you have to re-write the same selector over ...

jQuery’s .children() Method

Just like in CSS, it’s possible to use jQuery to select the children of an element and apply jQuery to them. This can be done using jQuery’s .children() method. The method works pretty much like any other jQuery method — to select all of the ...

jQuery’s .click() Method

With jQuery, it’s super easy to make something happen as a result of something else being clicked using the .click() method. All you need to do is pass a function through the .click() method. The .click() method will be the trigger event (make ...

Using jQuery’s .resize() Method

jQuery’s .resize() method is a cool way to have an event triggered or have a function executed when something is resized. For the purposes of this tutorial, we’re going to show you how to use the .resize() method to trigger an alert ...

How to Use jQuery to Search and Replace HTML

Have you ever made a mistake in your code or in your text and dreaded combing through all of your HTML files to repair what went awry? With this jQuery search and replace code, you may never have to do that again. The code searches for a term or ...

How to Use jQuery’s .mouseover() Method

jQuery’s .mouseover() method is used to execute some jQuery code whenever an element is “moused-over” (or, as the action is perhaps more commonly referred to, hovered upon). Really, the concept isn’t much different from ...

Page 2 of 2012345...1020...Last »