Here's the code:

 

beforeSend:  function() {

 

                  if    (   $('input[name='authorization']:checked').val()
== 0        )

                        {   $('#agree').fadeIn(500);

                            return false;
}

 

                  else  {   $('#rentalAppLoader,
#rentalAppProcessing').fadeIn(500);   }

 


             },

 

and the error message is referencing the "if  (  $('input." line.

 

It must be a syntax error, but I can't see it.

And, btw, is the use of "return false" like that in the "if" portion an
appropriate

way to stop an ajax function if a value isn't what I want it to be?  (In
this case,

"authorization" needs to be equal to 1 for the ajax function to proceed.

 

Thanks for any feedback.

 

Rick

 

----------------------------------------------------------------------------
------------------------------------------

"Ninety percent of the politicians give the other ten percent a bad
reputation."  - Henry Kissinger

 

Reply via email to