I have a form in which one field can be validated using RJS. If the user hits ''submit'' and that field is invalid it will return something like : <div class=''fieldwithErrors''><input name="cc[coupon]" size="30" type="text" id="cc_coupon" value="xxxxxx" /></div> Using AJAX the entered data could at one point become valid and then I need to remove the ''fieldwitherrors'' div(which places a red background around the input field) with something else using RJS. Any ideas how I could do this? -- Radu Spineanu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have a form in which one field can be validated using RJS. If the user hits ''submit''(which is via POST) and that field is invalid it will return something like : <div class=''fieldwithErrors''><input name="cc[coupon]" size="30" type="text" id="cc_coupon" value="xxxxxx" /></div> Using AJAX the entered data could at one point become valid and then I need to remove the ''fieldwitherrors'' div(which places a red background around the input field) with something else using RJS. Any ideas how I could do this? -- Radu Spineanu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---