Results 1 to 2 of 2

Thread: jQuery Form Plugin

  1. #1
    Join Date
    Aug 2005
    Posts
    174
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default jQuery Form Plugin

    Hello,

    I've set up the jQuery Form Plugin (http://jquery.malsup.com/form/#html) on my webiste - but instead of a text field, i have a drop down menu.

    The first thing I would like to do, is to auto submit onChange of the dropdown menu,

    And the second, would be to load <div id="loading> and waiting a second before the response is shown.

    Thanks for your help guys :-)

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm not sure what you mean by the second thing. But to auto submit onchange is simple in jQuery:

    Code:
    jQuery(function($){
    	$('select').change(function(){this.form.submit();});
    });
    No special plugin required.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •