Hi,
I have a dropdown in which I have a option called OTHER, on selecting of OTHER a textbox opens. It has a required field validator. The problem is that the required field validator fires as soon as the OTHER option is selected. I want this event to be fired
on button Submit. I tried writing this code, but it does not working for me.
Please see the code:-
Button:-
<asp:Button ID="btnSubmit" CssClass="btnDropbox" runat="server" OnClick="btnSubmit_Click" Text="Submit" CausesValidation="true" OnClientClick="return pageLoad();" />
JS code:-
<script language="javascript" type="text/javascript">
function pageLoad() {
$('#ctl00_ContentPlaceHolder1_txtOther').hide();
$('#ctl00_ContentPlaceHolder1_txtOtherPG').hide();
$('#ctl00_ContentPlaceHolder1_ddlGraduation').change(function () {
Go to the complete details ...