$(function() {
$(":checkbox").click(function() {
if($(this).is(":checked")) {
var name = $(this).parent().next().text();
var age = $(this).parent().parent()
.find("select option:selected").text();
alert(name + " " + age);
}
});
});
注意,你的 option 的 value 全部为空,所以我用 text() 代替的,实际上 age 应该使用 val() 来获取 option 的值。
$("input[name='sel_ser']:checked").parent().next().next().find("select option:selected").val()