sssssssssssssssssssss
$(document).ready(function(){ $("select[name=selectName1]").change(function(){ //如果这样由于id一样,排在第二个位置的下拉框,当change的时候 取不到值 ? alert($(this).val()); //显示下拉框中已选文本值 ,同上 alert($(this).find('option:selected').text()); }); });
$("select[name=selectName1]").each(function(){
$(this).val();//取value
$(this).find("option:selected").text();//取text
}