0

I want to build an interactive calendar. My problem is that I want to retrieve settings to my front-end.

let months = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];

I want something:

let months = calendar.settings.months

Could you guide me what steps are to achieve this? I registered my scripts but how to pass values from php to js?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.