zoloftonlinenowbuy
New Member
I am having some serious issues with this. I have a two fields like this, both of them being assigned datepickers with jquery.\[code\]<asp:TextBox ID="RTRP" runat="server" CssClass="textEntry" Width="120"></asp:TextBox><asp:CustomValidator runat="server" ID="CustomValidator3" ControlToValidate="RTRP" Text="No date selected" ValidateEmptyText="True" ClientValidationFunction="clientValidate" Display="Static"></asp:CustomValidator><asp:TextBox ID="ContEd" runat="server" CssClass="textEntry" Width="120"></asp:TextBox><asp:CustomValidator runat="server" ID="CustomValidator1" ControlToValidate="ContEd" Text="No date selected" ValidateEmptyText="True" ClientValidationFunction="clientValidate" Display="Static"></asp:CustomValidator>\[/code\]With the following javascript to validate it.\[code\]$("#<%=RTRP.ClientID %>").datepicker();$("#<%=ContEd.ClientID %>").datepicker();function clientValidate(sender, args) { args.IsValid = args.Value.length > 0;}\[/code\]Both get their datepickers, but the validation function simply refuses to be fired and always allows the form to submit. I am completely lost here, what am I doing wrong?