Hi,
I have a problem with a form. I build a form with the following code:
<div class="form_row">
<asp:TextBox ID="txtVoornaam" runat="server" placeholder="Voornaam" CausesValidation="true"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator3" runat="server" ForeColor="Red" ClientValidationFunction="ValidationFunction1" ValidateEmptyText="True" Display="Dynamic" ControlToValidate="txtVoornaam" ></asp:CustomValidator>
</div>
The script 'validationfunction1':
function ValidationFunction1(source, args) {
alert('test');
var controlId = document.getElementById(source.controltovalidate).id;
var control = $("#" + controlId);
var value = control.val() ...
Go to the complete details ...