开发者

how to change dom of one frame bye the event of another frame?

开发者 https://www.devze.com 2023-01-29 15:53 出处:网络
i have one page and i have written code 开发者_如何学Go i am using jquery. now i want to append some html elements in some div of FormView.jsp, in response to some of the event fired in show

i have one page and i have written code

开发者_如何学Go

i am using jquery. now i want to append some html elements in some div of FormView.jsp, in response to some of the event fired in showFormPage.jsp.

how can i do it? help me..


In your event handler you can target a element ID of say section in another frame called say other_frame, like so:

$("#button").click(function() { 
  $("#section", top.frames["other_frame"].document).append("<b>your html elements</b>");
});
0

精彩评论

暂无评论...
验证码 换一张
取 消