2013-11-05 46 views
0

我正在嘗試做這一個http://jquerywall.com/demo-multi-transfer-jquery-ui-selectable/ 但問題是,這個multiselect插件有一些按鈕。當我點擊這些按鈕中的任何一個時,我的頁面發佈並轉到它的方法。 這裏是我的按鈕回髮禁用按鈕asp.net nvc

<div id="transfer-buttons"> 
      <button id="add-button">Add &rarr;</button> 
      <button id="add-all-button">Add All *&rarr;</button> 
      <button id="remove-button">&larr; Remove</button> 
      <button id="remove-all-button">&larr;* Remove All</button> 

     </div> 

這裏有我的按鈕功能

<script type="text/javascript"> 
    $(function() { 
     $("#add-button").click(add); 
     $("#add-all-button").click(addAll); 
     $("#remove-button").click(remove); 
     $("#remove-all-button").click(removeAll); 
     $("#source-list, #target-list").selectable(); 
     addHiglightPlugin(); 
    }); 

我應該怎麼辦?

回答