摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gbk& 阅读全文
摘要:
多选框判断是否选中$("input[name='name']").attr("checked") != 'checked'判断选中个数var show_count = 0$("input[name='userlist[]']:checked").each(function(){ if($(this).attr("checked")){ show_count++ }})下拉菜单<select />改变选中状态,查找出被选中的元素 $("#selec 阅读全文