In mvc we can do some global tamlpate for type of some property.
like with datetime.. we can just made some tamplate with the jQuery call inside the tamplate.
form oo prespective this is great. but what about jQuery?
assume that I have 5 datetime properties in my form with auto tamplate. each tamplate has an:
$(document).ready(function(){ $("#thePropertyId").datetimepicker(); });
maybe its better to mark all this properties with '.date' class
and call the datetimepicker once for all of them in one docuement ready
$(document).ready(function(){ $(".date").datetimepicker(); });
so, waht are you think?