Author Topic: Little gem I just learned  (Read 2820 times)

Mike

  • Jackass In Charge
  • Posts: 11247
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Little gem I just learned
« 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>

Mike

  • Jackass In Charge
  • Posts: 11247
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Little gem I just learned
« Reply #1 on: August 02, 2014, 07:02:40 PM »
And of course it doesn't work in IE :(

micah

  • A real person, on the Internet.
  • Ass Wipe
  • Posts: 6915
  • Karma: +58/-55
  • Truth cannot contradict truth.
    • micahj.com
Re: Little gem I just learned
« Reply #2 on: August 03, 2014, 07:23:12 AM »
All of IE or just old IE? Bummer
"I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.  I use it to look at pictures of cats and get in arguments with strangers."

Mike

  • Jackass In Charge
  • Posts: 11247
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Little gem I just learned
« Reply #3 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.