Rick I think that would be

Params['Principal']

instead of Params.  

-- Josh


----- Original Message ----- 
From: "Rick Faircloth" <[EMAIL PROTECTED]>
To: "'jQuery Discussion.'" <discuss@jquery.com>
Sent: Tuesday, March 13, 2007 3:14 PM
Subject: [jQuery] Need to validate single form field...


> Hi, all...
> 
> How would I modify this code to pass the value of
> a single form field called "Principal" to my .cfm validation page?
> 
> This code was written to gather all the form fields of a form into
> a single group of variables, "Params"..  would I still use "Param"
> to represent the value of the form field, "Principal"?
> 
> 
>        function ValidatePrincipal(){
> 
>            var Params = {};
> 
>            $("input:text").each(function(){
>            Params[$(this).attr("name")] = $(this).val();
>            });
> 
>            // "post" the form.  The Params object mimics form fields
>            $.post("callpage_Validate_Mortgage_Inputs.cfm", Params,
> function(data){
>            // this is the processing function.
> 
>            // append what you get back to the element with ID = Result
> after clearing its contents
>            $("#Result").empty().append(data);
> 
>            } // closes post function
>            ); // closes ( after .post 
>        } // closes { after ValidatePrincipal()
> 
> Thanks!
> 
> Rick
> 
> 
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to