MVC pages with culture depending on the user. In Search option (search can be done by DueDate), I need to have a mask on that DueDate text box. Mask must be dependant on the user's culture. In both js and cshtml have an error saying: mask.split is not a function
. Changed my jquery.maskedinput-1.2.3.js
from make.split
to make.toString()
.split and the error is gone, but must looks like this: [object Object]
or has some 01
numbers. Any idea? Code in cshtml
looks like this:
<script type="text/javascript">
$(function () {
var maskFormat = @Html.CurrentDateMask();
$(".DateBox").mask(maskFormat);
});
</script>