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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:16:55+00:00 2026-05-22T20:16:55+00:00

I have a form inside a dialog that appears after clicking in another button.

  • 0

I have a form inside a dialog that appears after clicking in another button. After you clicked on the button the form appears where the user puts some of the values in there. Some of them are required so the have the required attribute attach to them. Am using the validator that is here http://docs.jquery.com/Plugins/Validation/validate from bassistance.de

The JQuery validator loads when the form (medicx) appears to the user (is visible). When the user clicks on the submit button of the form (submedic) the check if it is true or false start. This is the check that always gives true instead of giving false when some of the input that have the required flag are not yet completed. The code is like this:

if ( $('#medicx').is(':visible') == true ) { 
$('#formmedic').validate();
}

$('#submedic').click(function() {
    alert("Valid: " + $("#formmedic").valid());
});

The form looks like this:

<td><label>First Name:</label></td>
<td><input id="fmfname" name="fmfname" type="text" min="3" pattern="[A-z]{3,}" required="required"/></td>
<td><label>Last Name:</label></td>
<td><input id="fmlname" name="fmlname" type="text" min="3" pattern="[A-z]{3,}" required="required"/></td>
  • 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-22T20:16:56+00:00Added an answer on May 22, 2026 at 8:16 pm

    Looking at the documentation, it appears your input elements should have class="required" rather than required="required".

    That would explain why your form is always valid – the fields that are supposed to be required aren’t actually marked as required.

    Add the required class and see if that fixes it.

    I couldn’t see whether the plugin supports the HTML5 required attribute or not. If so, it should be simply required or nothing at all (as per the specification).

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

Sidebar

Related Questions

I have a form in C# that has a button that, when clicked, I
Let's explain the context: I have a person form inside a jquery dialog that
I have a small form inside a table. POSTing that form creates a new
I have a form with some radio buttons that are disabled by default. When
I have a form inside an iframe which is inside a jQuery UI dialog
I have main form and some other forms, that can be shown by controls,
i load a form into a jquery ui dialog. i have a submit button
Is it valid to have a form tag inside a table tag? Some documentation
I have a user control (form) inside a user control (grid) with a Validator
I have a Dialog with a form inside. The following code is just an

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.