Skip to content
Advertisement

Submit forms from both parent and iframe to same target

Parent form

JavaScript

Iframe form

JavaScript

This JS works fine submitting from Iframe using a button placed in parent

JavaScript

I try to modify JS with document.getElementById(“form1”).submit(); to send parent form as well but I end up with results only from one form and not both

Advertisement

Answer

this worked for me

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement