how to get text from a div in an iframe with jquery -
i have page uses iframe ajax style file upload. when upload completes i'm writing div iframe status of whether file uploaded or not. iframe not visible , i'm using target form. works fine except can't figure out how use jquery text within div. iframe has id of upload_target , div in iframe has id of uploadstatus. thought following work doesn't. know how can this? thanks.
$("#upload_target").load(function () { alert($("#upload_target> #uploadstatus").text()); });
make sure iframe
has name
attribute set upload_target
well, , use
alert($("#uploadstatus", frames['upload_target'].document).text());
Comments
Post a Comment