カテゴリー: jQuery
2014年08月07日
※$("input").each()内の処理
$("input")
.each(
function () {
var _this = $(this);
if (_this.attr("type") == 'radio') {
if ($("[name="+_this.attr("name")+"]:checked").size()) {
// 該当のradioは選択済み
}
}
}
)
;
$("input")
.each(
function () {
var _this = $(this);
if (_this.attr("type") == 'radio') {
if ($("[name="+_this.attr("name")+"]:checked").size()) {
// 該当のradioは選択済み
}
}
}
)
;