var val=$('input:radio[name="sex"]:checked').val(); 出处: http://blog.csdn.net/snihcel/article/details/7454221