"Official_time": {
"1": {
"from" : "10:00 am",
"to" :"5:00 pm"
},
"3": {
"from" : "10:00 am",
"to" :"5:00 pm"
}
}
I want when "I am select first day of week than I will get its value one and like each day I get Its value like 1 to 7 but if I am select days than only its value 1 to 7 gets. I am using checkbox for days.
Another things is I need store 'open time' & 'close time' so I using time picker.
So how Can I create single array in javascript for this all value like show in array, and can I call in javascript using Ajax?
假设您根据自己的喜好将所有时间存储在 php 数组中,这里是将 php 数组转换为 JSON 的一个很好的起点: json_encode
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.