[jQuery] Subscribe form / ajax / jQuery ?
OK, next question; I'm trying to duplicate a form so that it can be used
in multiple places on one page, but I don't know how to reference the
form that's being submitted in the function that follows.
For example, I have a <div> with a class within each <form>, that I
update with a success/failure message from the script the form .load()s.
$('.simplesubscribe').submit( function(){
$("div.SubscribeSuccess").html("Please enter an email
address.");
});
How do I change it so that the div I update is relevant to the form it's
contained in? Something like:
$('.simplesubscribe').submit( function(thisform){
thisform.$("div.SubscribeSuccess").html("Please enter an email
address.");
});
The documentation wasn't very clear for function() - little help?
Luc Pestille
Web Designer
e: luc.pestille@in2.co.uk
t: +44 (0)1628 899 700
f: +44 (0)1628 899 701
In2
Thames House
Mere Park
Dedmere Road
Marlow
Bucks
SL7 1PB
Tel 01628 899700
Fax 01628 899701
e: sales@in2.co.uk
i: www.in2.co.uk
This message (and any associated files) is intended only for the use of discuss@jquery.com and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not discuss@jquery.com you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored. Any views or opinions presented are solely those of the author Luc.Pestille@in2.co.uk and do not necessarily represent those of the company.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/