EntropySink

Technical & Scientific => Programming => Topic started by: Mike on August 02, 2014, 05:51:31 PM

Title: Little gem I just learned
Post by: Mike on August 02, 2014, 05:51:31 PM
So I LOVE modals but one problem I was having is forms in the modal body but the submit button in the modal footer (which is outside the form tag).  Always had to use some JS to tie it together.

BUT NO MORE!

Code: [Select]
<form id="myform">stuff</form>
<button type="submit" form="myform">Submit it motherfucker!</button>
Title: Re: Little gem I just learned
Post by: Mike on August 02, 2014, 07:02:40 PM
And of course it doesn't work in IE :(
Title: Re: Little gem I just learned
Post by: micah on August 03, 2014, 07:23:12 AM
All of IE or just old IE? Bummer
Title: Re: Little gem I just learned
Post by: Mike on August 03, 2014, 10:57:06 AM
I tried it with IE 11 and it was a no go.  Ended up putting a wedge in for it.