I'm trying to use jQuery required validation with a SharePoint 2010 DateTimeControl, but I'm not seeing any type of response when I click submit and leave my control blank. Can you use jQuery validation with this control? If so, can someone tell me what I am doing wrong?
- <div id="preopForm">
- <fieldset class="form">
- ...
- <div class="row">
- <label class="label">Presentation Date</label>
- <SharePoint:DateTimeControl ID="preopDate" runat="server" DateOnly="true" />
- </div>
- ...
- $("#preopForm").validate({
- rules: {
- '#<%=preopDate.ClientID %>': {
- required: true
- }
- },
- messages: {
- '#<%=preopDate.ClientID %>': {
- required: "*"
- }
- }
- });