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

  • Home
  • SEARCH
  • 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 3455718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:38:55+00:00 2026-05-18T09:38:55+00:00

I want to apply validation through jquery in my forms and for that I

  • 0

I want to apply validation through jquery in my forms and for that I require the “name” attribute of the TextBoxes on my form which are generated by the ASP.Net automatically. Is there any way I can get the name of elements in javascript just like:

<script>
'<%= txt.ClientID %>'
</script>

I am using the following type of jquery validation:

$(".selector").validate({
   rules: {
     // simple rule, converted to {required:true}
     name: "required",
     // compound rule
     email: {
       required: true,
       email: true
     }
   }
})
  • 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-18T09:38:55+00:00Added an answer on May 18, 2026 at 9:38 am

    You might do it like this…

    <script> 
      var textbox = '<%= txt.UniqueID %>';
    </script> 
    

    Or even…

    <script> 
      $('#<%= txt.UniqueID %>').DoYourThing();
    </script> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know if I apply server side validation on a text box
hi all i want to know that can we validate a control which is
How do you apply validation in an MVP/domain environment ? Let me clearify with
Scott Gu wrote an excellent article explaining how to apply the Data Annotation validation
I want apply margin property for my html newsletter But Gmail ignores this CSS
Maybe kind of a stupid question, but i'm a beginner in jQuery and i'm
I want to have a table of users. These users shall have n contacts
The following is my current query. It works the way i want it to.
Having the next table: id -> incremental field_1 -> foreignkey field_2 -> foreignkey I
First of all, thank you very much in advance for any attempt at helping

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.