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
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
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
', '#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
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
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
6 matches
Mail list logo