P
Paul
Guest
Paul Asks: How to read value from appsettings in jquery
How can use a value from appsetting.json file in Jquery.
Actually I want to add no. of days to my initial starting date. so I have stored a pre-defined duration of day in appsettings.
Appsettings.json
JQuery File:
Can anyone please help me to get the value from Appsettings file. Thanks in Advance
How can use a value from appsetting.json file in Jquery.
Actually I want to add no. of days to my initial starting date. so I have stored a pre-defined duration of day in appsettings.
Appsettings.json
Code:
"SubscriptionDuration": {
"subscriptionDays" : 365
}
JQuery File:
Code:
//This to set default startDate as todays
document.getElementById("subscriptionDate").valueAsDate = new Date();
Can anyone please help me to get the value from Appsettings file. Thanks in Advance
SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.