Re: Basic MVC4 question on Form Post

2013-11-03 Thread Jorke Odolphi
Correction.. From: Jorke Odolphi mailto:jo...@jorke.net>> Reply-To: ozDotNet mailto:ozdotnet@ozdotnet.com>> Date: Sunday, 3 November 2013 10:47 pm To: ozDotNet mailto:ozdotnet@ozdotnet.com>> Subject: Re: Basic MVC4 question on Form Post I’m guessing, something like will get you close. $('div').c

RE: Basic MVC4 question on Form Post

2013-11-03 Thread Tony Wright
Add an id to your BeginForm statement, in case you have a second form to the page (there's usually a separate form tag for logout button, if I recall correctly.) using (Html.BeginForm("foo", "bar", FormMethod.Post, new { id = "myID" })) You need to add a click handler to the span containin

Re: Basic MVC4 question on Form Post

2013-11-03 Thread Jorke Odolphi
I’m guessing, something like will get you close. $('div').click( $('form[action="SomeAction"]').submit() ) I hope the action is unique enough I don’t know how mvc renders them now.. From: Greg Low mailto:g...@greglow.com>> Reply-To: ozDotNet mailto:ozdotnet@ozdotnet.com>> Date: Sunday, 3 Novembe

Basic MVC4 question on Form Post

2013-11-03 Thread GregAtGregLowDotCom
Hi Folks, I'm still getting my head around MVC4 bit by bit. A quick question if I can: If I have a form declared: @using (Html.BeginForm("SomeAction", "SomeController", FormMethod.Post)) { } I would normally just post it by using an input button set to submit. However, if I don