ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Datepicker problem to select a date TypeError: inst is undefined
Title:
B
I
{code}
?
I use AwesomeMvc3.5 for my MVC4 project. I followed the procedure of integration but the components call did not go well. There when I call datepicker, it displays the calandar, but if I want to select a date, there are jquery errors: TypeError: inst is undefined inst.selectedDay = inst.currentDay = $ ('a', td) html ().;
Save Changes
Cancel
ousmane.nacanabo
asked at 26 Feb 2014
Answers
B
I
{code}
?
it looks like you have more than one datepicker with the same name html ids need to be unique, the id of the datepicker is generated based on the name you can use the `.Prefix(string)` extension to have a unique id; e.g. @Html.Awe().DatePicker("foo") @Html.Awe().DatePicker("foo").Prefix("abc") (or just use different names) you can see our datepicker demos here: https://demo.aspnetawesome.com/DatePickerDemo
Save Changes
Cancel
Omu
answered at 26 Feb 2014
Thank a lot. The naming was my problem. It works now
at 27 Feb 2014
ousmane.nacanabo
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK