dropdownlist 抓 值 或 txt 或 item 裡面全部的value
假設 DropDownList ID 為 DropDownList1 
取得 DropDownList 選中的文字
$('#DropDownList1 option:selected').text();
取得 DropDownList 選中的內容
$('#DropDownList1 option:selected').val();
xxx script type="text/javascript"xxxx
   function getSelect() {
      var selected = $('#DropDownList1 option:selected');
      alert(selected.val());
   }   
xxx /script xxx
沒有留言:
張貼留言