2012-08-11 69 views
1

我正在使用this下拉列表查看我的某個應用程序。這對我很好,但我的問題是,它的Look(jQuery UI)與我的應用程序UI不匹配。有什麼方法可以改變上述的風格。我更喜歡刪除表面,看起來像正常的下拉列表。我也經歷了this。但它也有同樣的問題。是否有任何看起來像普通下拉式的下拉式清單,並具有此功能?從下拉列表中刪除樣式

我的代碼

<script type="text/javascript"> 
     $(document).ready(function() { 
      $("#s1").dropdownchecklist(); 
     }); 
    </script> 

      <select id="s1" multiple="multiple" tabindex='8'> 
       <option>Low</option> 
       <option>Medium</option> 
       <option>High</option> 
      </select> 

回答

0

你可以嘗試刪除已分配的種類和樣式,或添加新的類什麼都工作,消除這些屬性後,下拉列表

$('#dropdownid').removeClass();  
$('#dropdownid').removeAttr('class'); 
$('#dropdownid').removeAttr('style');  
$('#dropdownid').attr('class', 'newclass'); 

嘗試的CSS改變這下拉提供ui.dropdownchecklist.standalone,ui.dropdownchecklist.themeroller

+0

感謝您的答案,但沒有運氣。 – arjuncc 2012-08-11 05:53:43

+1

您是否嘗試更改ui.dropdownchecklist.standalone,ui.dropdownchecklist.themeroller中提供的此下拉菜單的css? – Adil 2012-08-11 06:04:20

+0

不,我正在處理它 – arjuncc 2012-08-11 06:09:53