> function validate(data, $form, opts) {
> var name = $('#contactForm [EMAIL PROTECTED]').fieldValue();
> alert(name);
> if (!name) return false;
> }
FYI, you can also get the value of the name field like this:
function validate(data, $form, opts) {
var name = $form[0].name.value;
alert(name);
if (!name) return false;
}
This works fine for simple text inputs. When you need to get the
values from checkboxes, radios or selects you're better off using
fieldValue.
Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/