代码:
var ifBoy= $("input[id='IF_BOY']:checked", $("div[index-popus]")).val();
所以是说,在属性为index-popus的div中,找到id为IF_BOY的被选中的那个。
其中IF_BOY,是一个radio选择(是/否)
1"input[id='IF_BOY']:checked"什么意思?
http://www.365mini.com/page/jquery-input-checked-selector.htm
2$("div[index-popus]")什么意思?