[jQuery] Best practice for form serialize?

2007-10-12 Thread mo2g
I have a web page with two forms on it. It originally used Prototype and I would like to convert it to jQuery. The main form has text, checkboxes, radio buttons, etc. I want to watch the form and if any form element changes I want to serialize the entire form and post it to a URL, receive the

[jQuery] Re: Best practice for form serialize?

2007-10-12 Thread mo2g
I was asked why I couldn't just set an action on each field. I can't change the form as it is dynamically created. I just know the form name. In Prototype I used the Form Observer. On Oct 12, 1:07 pm, mo2g [EMAIL PROTECTED] wrote: I have a web page with two forms on it. It originally used

[jQuery] Can't parse input from one form of many on page

2007-09-27 Thread mo2g
Sorry if this double posts... I am a newbie with JQuery and have ported a form from Prototype. I have two forms on a page: form action=go.php method=post name=adminForm id=adminForm input id=address name=address size=60 more fields... input type=submit /form form action=test.php method=post

[jQuery] Re: Can't parse input from one form of many on page

2007-09-27 Thread mo2g
', '#adminForm').each(function() { do stuff; } This says get all input, select, hidden elements in the context of #adminForm. -- Josh - Original Message - From: mo2g [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, September 27, 2007 12:55 PM

[jQuery] Re: Can't parse input from one form of many on page

2007-09-27 Thread mo2g
Nathanson [EMAIL PROTECTED] wrote: Try this: $('input,select,hidden', '#adminForm').each(function() { do stuff; } This says get all input, select, hidden elements in the context of #adminForm. -- Josh - Original Message - From: mo2g [EMAIL PROTECTED] To: jQuery (English) jquery

[jQuery] Firing function on any form element changing?

2007-09-10 Thread mo2g
I have a script that fires if any input or select element changes on my form: $('input, textarea, select').change(function(){ First, is this the correct way to do this? Second, how do I make sure that only the elements in form myform are the one that are being monitored for change? The