开发者

Automatically add a jquery date picker to all [DataType(DataType.Date)] fields

I'm using [DataType(DataType.Date)] on properties in our models.

How can I开发者_运维问答 make Razor add the css class datepicker to all text boxes which belongs to DataType.Date properties? (so that I can add date pickers using jquery on document load)


Answer:

Integrating with the jQuery UI date picker and adding a jQuery validate date range validator

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜