Jquery Post
-
JQuery 결과값 리턴카테고리 없음 2011. 12. 15. 20:02
>> POST 전송, 결과값 리턴 (jQuery) function post_s(href, parm, del) { if (!del || confirm(”한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?”)) { $.post(href, parm, function(req) { document\.write(req); }); } } $.post( //url (상대/절대경로 다 먹는다.) 'projectinsert.action', { //post인자 'item_id':item_id }, function(data) { //div 내용제거 $('#coupon_msg').empty(); //div 내용삽입 $('#coupon_msg').append(data); } );