2013-07-10 79 views
0

我在與一個JS鏈接問題的Javascript鏈接的Joomla不工作

我有下面的代碼

window.addEvent('domready', function() { 
    $('province_aw').addEvent('change', function() { 

     var index = this.options[this.selectedIndex].value; 
     var b = document.getElementById("choice_2").value; 

     var link = "index.php?option=com_chronoforms&chronoform=listSpecific-3&id_province="+index+"&id_ch="+b; 
     document.getElementById('link1').href = "index.php?option=com_chronoforms&chronoform=listSpecific-3&id_province="+index+"&id_ch="+b; 
    }); 
}); 

與此鏈接

<a class="jcepopup" id="link1" href="" rel="{handler:'iframe'}"> <input type='button' name='prueba' id='prueba' value='...' /> </a> 

的代碼實際上是改變但是,當我點擊按鈕時,沒有任何反應,它會一直髮送給我原始的href(這是主頁)。謝謝

回答