开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜