Access iFrame element from parent page using jquery





To access an iFrame element from its parent page we can use following JQuery function.

$('#frmiFrameTest').contents().find("[id*=element-id]")
frmIframeTest= Iframe Id
 
element-id = Id of element in iFrame.

 

 

 




Tags:

Comments are closed.