jQuery

jQuery each function, continue or break

A problem I run into all the time is how to use the equivalent of PHP's "continue" function with jQuery's "each" function. So I guess it is time to document it.

We can break jQuery's $.each() loop at a particular iteration by making the callback function return "false". If we return "true", it is the same as a continue statement in a for loop; it will skip immediately to the next iteration.

For example:

Getting Radio Button Values using jQuery and Javascript

There are many different ways to get the values of checkboxes using javascript or jQuery. I have assembled a list of some of the most popular methods.

Getting Radio Value using Name Attribute and jQuery

This method uses jQuery to select the DOM object via the name and property selector.

Submitting multipart/form-data using jQuery and Ajax

It is possible to submit files using "multipart/form-data" and ajax. There are many sites out there that show complicated ways of doing this when it is really easy. It simply requires a little configuration of the jquery ajax process and grabbing your form data using the FormData() function.

Using the following method, you can submit multiple files and are not just limited to one.

Lets take a look at our form.

Creating Sprite (character) Movement with Javascript and jQuery Ver. 1.2

See Digipiph Game Manager, a HTML5 framework to create character based, moveable sprites and much more!

Skip the theory and walk through and learn by example. Click here to see the demo.

Creating Sprite (character) Movement with Javascript and jQuery Ver. 1.1

See Digipiph Game Manager, a HTML5 framework to create character based, moveable sprites and much more!

UPDATE: See the newer version 1.2

Creating Sprite (character) Movement with Javascript and jQuery Ver. 1.0

See Digipiph Game Manager, a HTML5 framework to create character based, moveable sprites and much more!

UPDATE: See step 2 (ver. 1.1).

Subscribe to RSS - jQuery