I am trying to submit a form_remote_tag using javascript instead of a regular form submit button. Here is my code: <% form_remote_tag( :url=> { :controller=>''store'', :action=>''add_to_cart_ajax'', :id => @product.id, :variation => @variations[i].id }, :html => {:name => ''add_product_form''}, :complete => "showPopWin(''/store/show_cart'', 600, 400, null, true)", :failure => ''alert("That item appears to have gone out of stock before you were able to add it to your cart.\n\nPlease refresh this page.")'', :update => ''items'' ) %> <div class="buttonTicket" onclick="this.up(''form'').submit();">Add To Cart</div> </form> When I click the javascript text to submit the form, the ajax doesn''t fire. If I use a regular submit button everything works fine. What am I doing wrong? Any help is greatly appreciated! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---