Код: Выделить всё
function validateAppliesTo()
{
if ($("#collapseCat_row input:checkbox:checked").length > 0)
{
return true;
} else
{
swal({
title: "",
text: "Please select any course for which the fee should apply! "
});
return false;
}
if ($("#accordion_cat input:checkbox:checked").length > 0)
{
return true;
} else
{
swal({
title: "",
text: "Please select any category! "
});
return false;
}
return true;
}
В html
Код: Выделить всё
[url=#collapseCat]Category[/url]
General
Reserved
Подробнее здесь: https://stackoverflow.com/questions/464 ... is-checked
Мобильная версия