간단한건데 참 안된다. 


check_box_tag 용례도 잘 모르겠고 


해서...


<input type="checkbox" name="cancel"> > 이렇게 tag 를 추가하고



var cancelstr = $("input[name='cancel']").prop("checked"); > prop으로 checked 상태를 받아올 수 있다.

       console.log("====cancelstr : " + cancelstr);

       if(cancelstr == false)

       {

          console.log("====cancelstr!!!!!!!!!!!!!!");

       }

       else

       {

          console.log("====TTTTTTTTT");

       }

by 무위자연 2016. 4. 19. 17:56
| 1 |