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
精彩评论