I have a form that is inserted by a previous AJAX request. The form is declared with the following code: <form id="patientRegForm2" name="patientRegForm2" onsubmit="regFormSub2();"> Various form elements.... </form> The function being called is the following: function regFormSub2() { var url=''jax/regFormJax.php''; var regForm = $(''patientRegForm2'').serialize(true); new Ajax.Request(url,{ parameters:regForm, onSuccess:function(transport) { var respTxt = transport.responseText; $(''regFormDiv'').update(respTxt); } }); } My debugging console is returning the following error: $("patientRegForm2") has no properties [Break on this error] var regForm = $ (''patientRegForm2'').serialize(true); The form is inserted with a function almost identical to the function above. Does anyone know why this is happening? Please help..... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---