Results 1 to 3 of 3

Thread: mootools form.send

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

    Default mootools form.send

    Hi,

    I'm using mootool's Form.Send from here: http://demos.mootools.net/Form.Send

    Would anybody know how I could modify this to submit the form when a checkbox is ticked? instead of pressing the button!

    Thanks
    Last edited by nikomou; 03-24-2009 at 11:07 AM.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can have an 'onclick' event for the checkbox, which check whether the checkbox is checked or not. If it is checked then it will submit the HTML form from it and the form.send mootool code which is in place already will perform its duty correctly. You can also remove the button from the HTML form as you don't need it.

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

    Default

    Thanks,

    Ive used
    Code:
    onclick="this.form.submit();"
    it DOES submit the form, but results show in the whole page, not in the div

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
  •