<script type="text/javascript">
jQuery(document).ready(function(){
var button="<input title='取消' class='e8_btn_top_first' style='align: right;' type='button' value='取消' onclick='click_sj();'>"; //onclick为点击后事件
jQuery("#djqx").html(button);
});
function click_sj(){
alert("ok");
}
</script>
另一个时间触发代码
<script type="text/javascript">
jQuery(document).ready(function(){
var button="<input title='查询' class='e8_btn_top_first' style='align: right;' type='button' value='查询' onclick="onShowBrowser2('6707','/systeminfo/BrowserMain.jsp?url=/integration/sapSingleBrowser.jsp?type=browser.13','','226',field6707.getAttribute('viewtype'));">"; //onclick为点击后事件
jQuery("#djqx").html(button);
});
</script>
网友评论