Answer the question
In order to leave comments, you need to log in
How to refer to an object in JS?
Ajax returns an object in the form
{id: "17", id_name: "20", date: "2015-09-25", address: "В офисе", company: "1234567", timestart: "",…}
address: "В офисе"
company: "1234567"
date: "2015-09-25"
id: "17"
id_name: "20"
office: "1"
other_info: "test"
timeend: "11:10"
timestart: "12:20"
Answer the question
In order to leave comments, you need to log in
data["date"]
скорее всего конфликт с встроеным в js словом
а вы точно привели то что возвращается? иногда возвращается массив объектов и надо делать data[0]["date"]
alert(data.date); возвращает undefined
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question