I am showing a popup in an iframe. In parent body I showed loader as
$('body').loader('show');
How can I hide this loader by accessing parent body, I know parent body can be accessed as
window.parent.document.body
This works for me:
$('.loading-mask', window.parent.document.body).css('display', 'none');
But I need to know what is the best way to do this ?
Tried:
$('body', window.parent.document).loader('hide');
window.parent.$.body.loader('hide');
but no luck, any idea ??
hide()
instead ofcss()