봐 prop()
에 문제
function checkAll()
{
alert("value of checkbox = "+ $('#mastercheckbox').attr('checked'))
}
와 HTML 코드 둘러 보는 : http://api.jquery.com/prop/
워드 프로세서가 "확인"체크 박스를 확인하기 위해 더 나은 방법의 복수를 제공합니다.
elem.checked | true (Boolean) Will change with checkbox state
$(elem).prop("checked") | true (Boolean) Will change with checkbox state
elem.getAttribute("checked") | "checked" (String) Initial state of the checkbox; does not change
$(elem).attr("checked")(1.6) | "checked" (String) Initial state of the checkbox; does not change
$(elem).attr("checked")(1.6.1+) | "checked" (String) Will change with checkbox state
$(elem).attr("checked")(pre-1.6) | true (Boolean) Changed with checkbox state
잊어 버렸습니다. 알리미 주셔서 감사합니다. – mplungjan