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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:55:02+00:00 2026-06-12T11:55:02+00:00

<script src=/Scripts/jquery-1.6.2.min.js type=text/javascript></script> <script src=@Url.Content(~/Scripts/jquery.unobtrusive-ajax.min.js) type=text/javascript></script> <script src=/Scripts/jquery.validate.min.js type=text/javascript></script> <script src=/Scripts/jquery.validate.unobtrusive.min.js type=text/javascript></script> @model Izdivac.Models.User

  • 0
<script src="/Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script> 
<script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>

@model Izdivac.Models.User  
@using(Html.BeginForm("Basics", "User", FormMethod.Post , new { id="aboutme"}))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <ul> 
            <li>
                <label>Username</label>
                @Html.TextBoxFor(m => m.Username, new {@class = "input-text size-xl"})
                @Html.ValidationMessageFor(model => model.Username) 
            </li>
            <li>
                <label>First Name</label>
                @Html.TextBoxFor(m => m.FirstName, new {@class = "input-text size-xl"})
                @Html.ValidationMessageFor(model => model.FirstName) 
            </li>
            <li>
                <label>Last Name</label>
                @Html.TextBoxFor(m => m.LastName, new {@class = "input-text size-xl"})
                @Html.ValidationMessageFor(model => model.LastName) 
            </li> 
            <li>
                <label>Gender</label>
                @Html.EnumDropDownListFor(m => m.BasicInfo.Gender)
            </li>
         <li>
                <input type="submit" class="input-button" />
            </li>
        </ul>
    </fieldset>
}

<script type="text/javascript">
    $(function () {
        $('#aboutme').submit(function () {
            $.ajax({
                url: this.action,
                type: this.method,
                data: $(this).serialize(),
                success: function (result) {

                    $('#ShowResultHere').html(result.s);
                }
            }); 
            return false;
        });
    }); 
</script>

I m trying to do client side validation without hitting the server and failing.

how can i fix this? why is this failing?

EDIT:

here is model:

public class User
{ 
    public int Id { set; get; }

    [StringLength(40)]
    [Required]
    public string FirstName { set; get; }

    [StringLength(40)]
    [Required]
    public string LastName { set; get; }

    [StringLength(100)]
    [Required]
    public string FullName { set; get; }
  • 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-06-12T11:55:04+00:00Added an answer on June 12, 2026 at 11:55 am
            var formValid = $("#aboutme").validate().form();
    
            if (!formValid) return false;
    

    Did it.

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

Sidebar

Related Questions

I'm using the following jQuery plugins (along with the jQuery plugin): <script type=text/javascript src=scripts/jquery.scrollTo-min.js></script>
I have an aspx page and imports jQuery, jTemplate and Flexigrid <script src=Scripts/jquery-1.4.1.min.js type=text/javascript></script>
I do <script type=text/javascript src=Scripts/jquery-1.4.1.min.js></script> <script type=text/javascript> function CallPageMethod(methodName, onSuccess, onFail) { var args
Here is my preload script: <script type=text/javascript> Image_1 = new Image(1,1); Image_1.src = images/sprites.png;
<html> <head> <title></title> <script type=text/javascript src=http://maps.googleapis.com/maps/api/js?libraries=places&sensor=true></script> <script src=Scripts/jquery-1.4.1.min.js type=text/javascript></script> <script type=text/javascript> $(function () {
<script type=text/javascript> if (typeof jQuery == 'undefined') { var script = document.createElement('script'); script.type =
I made this bookmarklet: javascript:(function(){var s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');document.getElementsByTagName('body')[0].appendChild(s);$('#hldIntMain').hide();$('#fadeBackground').hide();return false;})() Formatted code: // Add in jQuery var
I have a script on jquery that load some site in iframe using: $(#demo_frame).attr('src',
what does script.setAttribute('src', '/json?callback=loadJsonPhotos'); JavaScript code mean?
I have a django template that looks like this: <head> <script src=http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js type=text/javascript></script> <script

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.