HI Klause,
Thanks for that :) where to I set this up. I have been able to do
this sort of thing with standard js but not integrating it with
jquery.
I put this inline javascript in the button function that calls the
ajax
"javascript:checkFormName(this.form.id);"
But can't get work out how to
And remember you don't have to use jQuery for everything where a
this.id is sufficient.
var myId = this.id;
But that wasn't the question anyway, Lance needed the id of the form
that contains the button, not the id of the button itself. The form's
id would be:
var formId = this.form.id;
--Klau
Hi Andy,
Thanks for that. I am a bit of a Jquery noob. Where do set the Var
myID and how will it know it's the form?
Here is my ajax function:
$(document).ready(function() {
// bind form using ajaxForm
$('#'+myID).ajaxForm({
// target identifies the element(s) to update with t
After you've clicked the submit button for a form:
Var myID = $(this).attr('id');
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lance123
Sent: Friday, November 07, 2008 3:09 PM
To: jQuery (English)
Subject: [jQuery] get form id from button cl
4 matches
Mail list logo