[jQuery] Clearing all form field values
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=000490518-28122006><FONT face=Arial color=#0000ff size=2>The
problem for me (in this case) is that the few fields that need to be transmitted
via AJAX (and then reset) are part of a larger form that I do NOT want to get
reset.</FONT></SPAN></DIV>
<DIV><SPAN class=000490518-28122006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=000490518-28122006><FONT face=Arial color=#0000ff size=2>I
might just have to do each field manually.</FONT></SPAN></DIV>
<P><FONT size=2><!----------------//------<BR>andy matthews<BR>web
developer<BR>certified advanced coldfusion programmer<BR>ICGLink,
Inc.<BR>andy@icglink.com<BR>615.370.1530
x737<BR>--------------//---------></FONT> </P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com]<B>On Behalf Of </B>Dave
Methvin<BR><B>Sent:</B> Thursday, December 28, 2006 11:56 AM<BR><B>To:</B>
'jQuery Discussion.'<BR><B>Subject:</B> Re: [jQuery] Clearing all form field
values<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=811555317-28122006>> <FONT face="Times New Roman" color=#000000
size=3>$("form
:input:not([@type]):not(button)").val("")</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Times New Roman" color=#000000
size=3><SPAN class=811555317-28122006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=811555317-28122006>That will clobber the values on radio buttons and
checkboxes. Here's another vote for
form.reset().</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/