Cannot read property 'split' of undefined
hamog opened this issue · comments
Hashem Moghaddari commented
Hello, Thanks for this shamsi datepicker.
What is this error?
Uncaught TypeError: Cannot read property 'split' of undefined
at da (kamadatepicker.min.js:1)
at kamaDatepicker (kamadatepicker.min.js:1)
Mona commented
Hi
I was able to reproduce this error with passing wrong input element id to kamaDatepicker.
<!--html-->
<input type="text" id="date1">
// JavaScript
kamaDatepicker('date2');
make sure that you pass the correct id, if this doesn't fix your problem please try to reproduce your error in jsfiddle or jsbin and post it here.
Hashem Moghaddari commented
Hi
I was able to reproduce this error with passing wrong input element id to kamaDatepicker.<!--html--> <input type="text" id="date1">
// JavaScript kamaDatepicker('date2');
make sure that you pass the correct id, if this doesn't fix your problem please try to reproduce your error in jsfiddle or jsbin and post it here.
Thanks, My problem was that