このスクリプトをjQuery easyui dateboxで使用します
<script>
function onSelect(date){
$('#result').text(date)
}
</script>
そして出力は
Selected Date: Tue Jun 11 2013 00:00:00 GMT+0800 (China Standard Time)
それで、出力を作ることは可能ですか:
2013-06-11
作り方は?
value datebox イベントを mysql のクエリに渡したいので
getdata.php
<?php
include 'db.php';
$created = isset($_POST['text']) ? mysql_real_escape_string($_POST['text']) : '';
$where = "datetime LIKE '$created%'";
$rs = mysql_query("select * from fe1a where " . $where );
$result = array();
while($row = mysql_fetch_object($rs)){
array_push($array, $row);
}
echo json_encode($result);
?>