I'm working on a kind of a survey using ASP.NET MVC4 and jQuery. And I'm NOT a web-developer, so I'm having some tough times.
My site contains (in brief) a top menu and a form. The form is multi-step with submit buttons "previous" and "next". I need to know the step type so I named the buttons so their value passes along with rest of the fields.
When some conditions are fulfilled I need to show an additional button (which is not a part of the form; let's call it "addButton" for now) in the top menu, clicking which would cause the form to submit. But I still need to know the "step type", so I created a hidden submit button in the form (let's call it "opButton") and when I click the "addButton" I just fire some javascript/jquery to simulate clicking the "opButton":
onclick="$('#opButton').trigger('click');"
And everything works flawlessly when I work with a desktop browser - there is an appropriate item in the Request object and it contains the button's value. But when I'm working on a mobile device (tested with Chrome's remote debugging) there is no such item - I just get null and that's it.
What could be the cause? I'd appreciate any suggestions.