2014-01-16 50 views
0

我試圖用散列URL發送電子郵件,即domain.com/#tellafriend打開一個告訴朋友phpmailer的彈出框。我不得不打開哪個應用到一個按鈕,工程彈出"TellAFriend_OpenForm「功能我現在的變種和觸發連擊:。使用散列URL打開頁面加載彈出式菜單

var thisHash = location.hash; 
if(location.hash) 
{ 
$(#tellafriend).trigger(TellAFriend_OpenForm);  
} 

但它不工作,我失去了一些東西,是我的語法

回答

1

您缺少名言

$('#tellafriend').trigger(TellAFriend_OpenForm);