<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Manage Customers Profile</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).on("change", ".update", function(){
	
	//	id="customername-'.$list["custmr_id"].'"
	var eventId, id = $(this).attr('id');
	var name = $(this).val();
	
   console.log('Field ID : '+id + ' for Name: ' + name);
	
		var xmlhttp = new XMLHttpRequest();
			xmlhttp.onreadystatechange = function() {
			if (this.readyState == 4 && this.status == 200) {
			//	var	resp = JSON.parse(this.responseText);
					console.log(this.responseText);
			}
		}
		xmlhttp.open("GET","updatecustomer.php?id="+encodeURIComponent(id)+"&name="+encodeURIComponent(name),true);
		xmlhttp.send();
});
</script>
</head>
<body>
		
	<table><thead><th>Name in Dispatch</th><th>Name in Quickbooks</th><th>Currency</th><th>Tel</th><th>Fax</th><th>Email</th><th>Address 1</th><th>Address 2</th><th>Address 3</th><th>Address 4</th><th>Address 5</th><th>Account</th><th>Sales Agent ID</th><th>ID</th><th>Billing ID</th></thead><tr><td colspan="14" style="height: 100px;"></td></tr></table></body>
</html>