2012年3月31日星期六

jquery radio选中。 每次都要查!

$("input[name=status][value=<?=$row[status]?>]").attr("checked",true);

datepicker显示指定日期! 总算搞明白了。

$('#exp_date').datepicker({dateFormat: 'yy-mm-dd'});
$('#exp_date').datepicker('setDate', new Date("<?=date("Y-m-d",$row[exp_date])?>"));