This is a migrated thread and some comments may be shown as answers.

Style Placeholder Data

0 Answers 494 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 03 Oct 2012, 06:43 PM

I have a Kendo UI datepicker with placeholder data. Here is the HTML:

<input type="text" class="datepicker"' placeholder="yyyy-mm-dd" />

Here is the JavaScript:

var start = $(".datepicker").kendoDatePicker({
        format: "yyyy-MM-dd",
        parseFormats: ["MM/dd/yyyy"],
        change: startChange
    }).data("kendoDatePicker");

The Kendo UI datepicker displays the placeholder data in the same style as user entered data. I would like to style the placeholder data differently. Specifically, I would like the text to be gray and italicized. When user enters data, the style changes to solid black (non-italicized). Any thoughts on how to do this?

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Share this question
or