.submit() passing no values in chrome when method is post
I have tried to search for the answer to this, but came up empty.
I am writing a form checker (and submit) in jQuery, and am testing with Chrome. Once I do my validation, if all is ok, I simply submit the form using...
- $("form#courseForm").submit();
and here is my form tag.
- <form name="courseForm" id="courseForm" action="courseDetail.asp" method="post">
In IE it works fine with either POST or GET methods in the form tag, but in Chrome it will only work with GET. When I try to use POST, the form does submit, but I don't get any data sent to the page at all.
The only thing I am doing different than usual, is the form does not have a submit button. I am using a "button" tag and using jQuery to capture the click event.
- <button type='button' name='courseSubmit' class='blueButton'>Save Changes</button>
Does anyone have any ideas why the POST isn't sending the data in Chrome? Simple workaround is to change it to a GET and it will always work, but I see that as a bandaid fix, and not really a solution to the problem.
Thanks
Allan