I have a form on our website that is on the page using an iframe. The sizing isn't working properly on certain size phones. I was give the following code to make it respond, but it isn't working. Any ideas?
<script>
function resizeIframe()
{ var height = $('.embed-iframe iframe').contents().height(); $('.embed-iframe iframe').height(height); }
$(window).bind("load", function()
{ resizeIframe(); });
$(window).resize(function() { resizeIframe(); }
);
</script>
Best answer by Ritz
View original