jQuery Ajax を使用して、php ページから応答を取得しようとしています。配列を分解して要素を結合して time を取得するまで、すべて正常に動作します09:00
。
コンソールは言うが、Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: 00
何も表示されない。
私のコードは、
$starttimeArr= explode(",",$comma_separated_starttime);// explodes 09,00,00
$endtimeArr= explode(",",$comma_separated_endtime);// explodes 17,00,00
echo $starttime= $starttimeArr[0].":".$starttimeArr[1];// combine to get 09:00. The line pop up the error
$endtime= $endtimeArr[0].":".$endtimeArr[1];// combines to get 17:00
このエラーをどのように克服しましたか? どんな助けでも大歓迎です。
私のAjaxコードは
jQuery("#_dob").change(function() {
jQuery.ajax({
url: "<?php echo $this->getUrl('deliverybydatepro/index/index') ?>",
data: "checkIn="+jQuery(this).val()+"&type=calendar",
type: "GET",
dataType: "html",
success: function(data) {
var $response=jQuery(data);
jQuery("#div1").html(data);
}
});
});
応答ページには、オプションを持つドロップダウンがあります"09:00"
。jQuery-1.8.0
その上でエラーを引き起こします。