要调用jqGrid的集成功能无处下手,用jquery调用其class
$("#Buttons").click(function(){
$("#html_href").contents().find(".ui-icon-search").trigger("click");
});
$("#Buttons2").click(function(){
$("#html_href").contents().find(".ui-icon-calculator").trigger("click");//.ui-icon-calculator 子页面程序class
});
<input type="button" id="Buttons" class="Buttons" style='font-size:12px' value="搜 索" >
<input type="button" id="Buttons2" class="Buttons2" style='font-size:12px' value="自定义列" >
<iframe id="html_href" src="p_datagrid.jsp" style="width:100%;height:535px" frameBorder="0" scrolling="auto"></iframe>