I'm brand new to using jQuery and I'm attempting to incorporate a jQuery datepicker into my HTML form. Everything is working fine in English, but when I try to switch the language to Slovak based on online tutorials, the datepicker stops displaying altogether and I can't figure out why. I've been searching for solutions for hours now, but nothing seems to be working.
Here's the code I'm using:
Head:
<script src='jquery-3.2.1.min.js' type='text/javascript'></script>
<link href='jquery-ui.min.css' rel='stylesheet' type='text/css'>
<script src='jquery-ui.min.js' type='text/javascript'></script>
<script src='datepicker-sk.js' type='text/javascript'></script>
HTML:
<input type='text' id='datepicker' ><br/>
JS:
$(function ($) {
$("#datepicker").datepicker(
{
language: "sk",
format: "dd.mm.yyyy",
startDate: new Date()
});
});
Although this code creates a text field, the jQuery calendar in Slovak isn't showing up as expected.