2013-11-22 25 views
0

繼承我的代碼在headers.php使用wordpress。即時通訊也使用二十三個主題和插件。Tablepress和模式窗口

<link rel="stylesheet" href="js/jquery-ui.css" /> 
<script type="text/javascript src="js/jquery-1.9.1.js"></script> 
<script type="text/javascript src="js/jquery-ui.js"></script> 
<script type="text/javascript src="js/dist/html5shiv.js"></script> 

<script type="text/javascript"> 
$(function() { 
$("#dialog103").dialog({ 
    autoOpen: false,}); 
$("#103").click(function() { 
    $("#dialog103").dialog("open"); 
}); 
}); 
</script> 

<div id="dialog103" title="SECTION 103. Scope and Application"> 
<p><strong>(a)</strong>The provisions of this Code shall apply..<br></div> 

和在tablepress列1行1格我有這個。

<button id="103">NBC SECT 103</button> 

當我點擊按鈕什麼也沒有發生。 也ID#dialog103上的文字出現在我的網頁的頂部。那應該在模態負載內容上。

感謝

+0

檢查撥弄你的代碼工作http://jsfiddle.net/fUgaf/7/ –

+0

感謝,斯里達爾的快速回復。它在小提琴上工作,那爲什麼不在wordpress上寫字?也許連接js腳本文件的代碼有問題。你能指導我嗎?即時通訊新的WordPress。謝謝。 – user3019874

回答

0

按照Codex 「包括與WordPress jQuery庫被設定爲noConflict()模式」。爲了讓您的代碼的工作,用它包:

jQuery(document).ready(function($) { 
    // Inside of this function, $() will work as an alias for jQuery() 
});