I am trying to dynamically set the locale by setting "lang" attribute of html :
$(document).ready(function () {
$("html").attr("lang","ko-KR");// or "en-us"
});
The below code does not work :
<input id="date" type="date"> .
The date format works when I set the locale in html page but doesn't work when I dynamically set it through jquery. However if I directly set in the html page it works :
<html lang="ko-KR">
Let me know where I am going wrong. Thanks in advance.