BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
[cshtml]
@Html.EJ().DatePicker("datepick").Value(System.DateTime.Now).WatermarkText("enter the date value").ButtonText("current date").Locale("en-US")
[script]
var dateObj = $("#datepick").ejDatePicker('instance');
//condition to check Spanish culture and change watermark and button text using dateObj.
if (ej.cultureObject.name == "es-ES") {
dateObj.option({ buttonText: "hoy", watermarkText: "seleccione fecha" })
}
//condition to check French culture and change watermark and button text using dateObj.
if (ej.cultureObject.name == "fr-FR") {
dateObj.option({ buttonText: "aujourd'hui", watermarkText: "sélectionnez la date" })
} |