mvc2 - can't trigger submit on form

Form:


<% using (Html.BeginForm("CreateOrderContacts", "myController", new { Area = "myarea" }, FormMethod.Post, new { id = "CreateOrderContacts" }))
                { %>

Translates on the page to:

<form action="/myArea/myController/CreateOrderContacts" id="CreateOrderContacts" method="post">


Form HTML on page:
Both input type = submit or image are not triggering the submit on my form. I would like to use input type=image.


<input type="submit" value="Continue" id="continueButton" />

<input type="image" src="<%= Url.Image("/buttons/continue_small.gif") %>" alt="Submit" id="buttonContactsContinue" />

I have a jquery click on input type = image and in it the formObject.size() is showing up as 0. I have also tried to trigger submit from here but nothing is happening.

My jquery click event on input type=submit is not even firing.


$("#buttonContactsContinue").click(function () {
        alert($("#CreateOrderContacts").size());
        
        $("#CreateOrderContacts").trigger('submit');
    });

I have two actions with the same name. The one without the httppost is the first time page shows. httppost is the one that i need to trigger when submit button is clicked.



public ActionResult CreateOrderContacts()

[HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult CreateOrderContacts(OrderViewModel model)

Try putting your <input type=“submit”/> inside of the using {} statement.

Problem fixed, there were duplicate form tags.

Thanks