Hi I have a submit_to_remote <%= submit_to_remote ''save_btn'', ''Save'', :url => {:controller => ''service_desk'', :action => ''sd_resolution_save'', :id => @sd_ticket.id, :sd_resolution_id => @sd_resolution_id, :page => params[:page] }%> But before submiting this I have to call a javascript for form validation ..How can I do this..For example suppose <script type="text/javascript"> function check1() { alert(''text''); } </script> HOW CAN I CALL THIS? Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---