Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:06:59+00:00 2026-05-30T11:06:59+00:00

i have asp text box and button control. <asp:TextBox ID=txtFName runat=server CssClass=sfInputbox></asp:TextBox> <asp:Button runat=Server

  • 0

i have asp text box and button control.

<asp:TextBox ID="txtFName" runat="server" CssClass="sfInputbox"></asp:TextBox>
<asp:Button runat="Server" Text="Save"  ID="btnSave" OnClick="btnSave_Click"/>

i want to validate textbox using validate.js when button is clicked.
i try inside document.ready:

        var btnSave = '<%=btnSave.ClientID%>';
        var txtFName = '<%=txtFName.ClientID %>';

        var v = $("#form1").validate({
            ignore: ':hidden',
            rules: {
                txtFName: { required: true }
            },
            messages: {
                txtLinkTitle: "<br/>First Name should not be blank"
            }

        });
        if (v.form()) {
            $('#' + btnSave).attr('disabled', 'disabled');
            }else
                $('#' + btnSave).removeAttr('disabled');
    });

But its not work.Don’t suggest server side validation.Its my project demand.Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:07:00+00:00Added an answer on May 30, 2026 at 11:07 am

    if i have understood the question, you can try

    if ($("#form1").valid()) {
      //do something
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following control on my ASPX page: <asp:TextBox ID=txtISBN13 runat=server ClientIDMode=Static />
I have the following control: <asp:TextBox ID=textbox1 runat=server Width=95px MaxLength=6 /> which i would
I have asp.net TextBox with ontextchanged event this is search text box in my
I have an ASP.NET user control that contains a text box control and a
If I put a control in a .aspx file like this; <asp:TextBox ID=protectedTextBox runat=server>Some
I have an asp.net TextBox control on my page and a search button whenever
I have put a range validator in a asp.net text box control in my
I have the following textbox with validation: <asp:TextBox ID=txtInput runat=server Width=80px CausesValidation=True></asp:TextBox> <asp:RequiredFieldValidator ID=RequiredValidator
I have an ASP page which displays a text box when it loads. It
I have information entered into a text box on an ASP.net 3.5 page. when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.