รายละเอียดของการตอบ ::
ไม่ต้องมี tag <form></form>
<img src="images/add2.png" style="padding-top:5px; cursor:pointer; " title="ยืนยัน" onclick="insert_trf_plan()" width="32px">
<script type="text/javascript">
function insert_trf_plan()
{
	//check validate 
	if( $("#txt_receive_shipper_code_add").val() == "")
	{
		alert('กรุณาเลือก Shipper Code!');
		$("#txt_receive_shipper_code_add").focus();
		
		return false ;
	}
	else if( $("#txt_receive_date_add").val() == "")
	{
		alert('กรุณาเลือก Receive Date!');
		$("#txt_receive_date_add").focus();
		
		return false ;
	}
	else if( $("#txt_receive_slip_no_add").val() == "")
	{
		alert('กรุณาใส่ Slip No.!');
		$("#txt_receive_slip_no_add").focus();
		
		return false ;
	}
	else if( $("#txt_receive_slip_no_add").val().length != 8)
	{
		alert('ใส่ Slip No. ไม่ครบ 8 หลัก!');
		$("#txt_receive_slip_no_add").focus();
		
		return false ;
	}
	$.ajax({
	  type: 'POST',
	  url: 'src_file/view_prod_trsf/create_receive_no.php',
	  data: { 
				iden_shipper: $('#txt_receive_shipper_code_add').val()
				,iden_receive_date: $("#txt_receive_date_add").val()
				,iden_slip_no: $("#txt_receive_slip_no_add").val()
				,iden_mode: $("#txt_receive_cargo_mode_add").val()
				,iden_receive_no_remark: $('#txt_receive_remark_add').val()
			},
		success: function(response){
			_load_receive_no();
			open_add_sub_model();
		  },
		error: function(){
			new Messi('Ajax Error !!! ไม่สามารถทำรายการได้', {titleClass: 'info', modal: true, buttons: [{id: 0, label: 'Close', val: 'X'}]});
		}
	});		
}
</script>