hi, i want to validate a form... so i have a form =)
<form id=''images''>
...
</form>
and...
Event.observe(''images'',''submit'', function(e)
{alert(''Validating...'');Event.stop(e);},false);
but i dont want to send the form using a <input type="submit">
element. i want to send it using...
$(''images'').submit();
but the alert dont appear and the forms submit!!
how to solve this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---