2013-01-10 38 views
0

我有這個名爲「myjsfunction()」的JS函數。在WordPress do_action中調用JS函數

function myjsfunction() { 

jQuery('#html_admin_show').hide(); 
jQuery('#html_admin_edit').show(); 

} 

如何在Wordpress do_action鉤子中調用這個JS函數?

我更喜歡,因爲我已經在使用第二個參數將其添加爲第三個參數,所以像:

do_action('myhelp', 'mysecondfunction', 'myjsfunction'); 

但它沒有顯示在頁面運行時的元素#html_admin_edit。任何想法如何調用這個功能?

謝謝你的任何提示。

回答