<script> <BR>/*關於彈窗的連結的問題<BR>* 2014-04-24 <BR>*/1:超連結a onclick 彈窗之後如何讓超連結a失效<BR>//js解決<BR>function arts(sourceobj){ <br><br>var url = $(sourceobj).attr("href"); <BR>art.dialog.open(url, {title: 'title',width: 400, height: 300}); <BR>return false; <BR>} <BR>//jquery解決<BR>$(document).ready(function(){ <BR>$('#aaa').click( function () { <BR>var url = $( this).attr("href"); <BR>art.dialog.open(url, {title: 'title',width: 400, height: 300}); <BR>return false; <br><br> <BR>}); <BR>}); <BR></script>
觸發彈窗 觸發彈窗 //2:ajax提交不要把按鈕放在submit上