I want to get the height of parent frame with jQuery.
It's my orginal script
var iframeElement = parent.document.getElementById('FrmPatient');
iframeElement.style.height = 170;
I want to change this script to jQuery style. How to get that?
I want to get the height of parent frame with jQuery.
It's my orginal script
var iframeElement = parent.document.getElementById('FrmPatient');
iframeElement.style.height = 170;
I want to change this script to jQuery style. How to get that?
Share Improve this question asked Aug 11, 2010 at 7:08 Pyae Phyoe SheinPyae Phyoe Shein 13.8k47 gold badges152 silver badges243 bronze badges2 Answers
Reset to default 3You could try this:
$("#FrmPatient", parent.document).css("height", 170);
$('FrmPatient').parent().css('height', '170px');