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 7669341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:34:21+00:00 2026-05-31T15:34:21+00:00

I have text box (telephone number) which is coming under the div tag not

  • 0

I have text box (telephone number) which is coming under the div tag not coming under the form tag. I have to validate this text box using RegEx pattern. If the the pattern is not matched I should not allow the users to save the screen.

I thought of using jquery validator

$.validator.addMethod

$(‘#form’).validate

But the problem is this text box doesn’t comes under form tag. What are the other options I can choose?

  • 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-31T15:34:22+00:00Added an answer on May 31, 2026 at 3:34 pm

    It would really help to see some code.

    Without code I can tell you this, there are SEVERAL ways to achieve what you want very easy.

    If you’re textbox (and i’m just assuming here) is a noraml input or textbox, you could do validation on either the keypress (checking if a number is being entered, and then checking the input value as a whole, return false if there is an error and no character will be inserted) or you could check them on ‘blur’, this would give you a function to check validation when they click anything else other than that textbox.

    Or, in jQuery, you can use a form ajax submit and use the function ‘beforeSend’ to validate form before posting and return false if there is an error.

    Gimmie a lil example detail code and i’ll show you more…

    also, is there any reason you can’t include the textbox in the form?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have text box to enter a phone number. I'm using AJAX MaskedEditExtender and
I have a text box in html form like this '&lt input id=yourinput type=text
I have a form on my company's site which takes a name, telephone number,
I have text box in which your adds values in comma separated values. Once
i have form where i have text box value and link (add). when user
I have a text-box into which a user can input a comment. The comment
I have a text box for searching. For some reason, .blur() will not work
I have a text box that contains lines of data similar to this: sheep
I have text box on 1.php like this <input type=text id=1 value=somevalue> & text
I have a text box at top which displays the total duration. Now what

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.