function updateDateField(dateFieldName, dateString)
{
var targetDateField = document.getElementsByName (dateFieldName).item(0);
if (dateString)
targetDateField.value = dateString; ใช้ตรงนี้หรือไม่ แล้วจะนำมาเป็นตัวแปล $date ยังไงค่ะ
var pickerDiv = document.getElementById(datePickerDivID);
pickerDiv.style.visibility = "hidden";
pickerDiv.style.display = "none";
adjustiFrame();
targetDateField.focus();
// after the datepicker has closed, optionally run a user-defined function called
// datePickerClosed, passing the field that was just updated as a parameter
// (note that this will only run if the user actually selected a date from the datepicker)
if ((dateString) && (typeof(datePickerClosed) == "function"))
datePickerClosed(targetDateField);
}
var date_use = document.getElementById('date_use');
var data =getFormData('grooming_form');
var URL ='grooming.php';
ajaxLoad('GET', URL ,date_use,'displayAJAX');