Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A jQuery plugin used for replacing the submit button with a preloader during a ajax request.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.textile
jquery.jpreloader.js

README.textile

jQuery jPreloader Plugin

Info

A jQuery plugin used for replacing the submit button with a preloader during a ajax request. So far this plugin is only working with form elements.

Example of usage

jPreloader needs to be initialized using jQuery. Choose the submit button to replace during a ajax request using the selector.


    $(document).ready(function() {
        $('form input[type=submit]').jPreloader({
            img: 'preloader.gif'
        });
    });

Note that jPreloader takes three parameters. The first one “img” is a must, should be the path to the image. Height and width will be the dimension of the image if no width or height is already defined.

Something went wrong with that request. Please try again.