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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:46:19+00:00 2026-05-25T23:46:19+00:00

Suppose I have a form and I wanna prevent the user from submiting the

  • 0

Suppose I have a form and I wanna prevent the user from submiting the form before validating,
so that I use the event.preventDefault() in onsubmit :

// In my validation.js

$('#myForm').bind('submit', function(event){
   event.preventDefault();
   // I do the client-side validation here
});

You can see here, the user can edit the validaiton code after preventDefault() line. And they pass the validation (only client side)

What is the more secure way to make a form ‘ajax’ with client-side validation?
I have the server-side validation too, but I just wanna ask how to make the client-side one harder to crack and more secure?

  • 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-25T23:46:19+00:00Added an answer on May 25, 2026 at 11:46 pm

    It’s never “more reliable” or “more secure”. JS can be disallowed and there would be no validation on client-side.

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

Sidebar

Related Questions

Suppose that I have a comments form, and I want to prevent bad users
Suppose that I have a simple form in my page like this : <form
I have a form that once you select from a drop-down list and select
Suppose I have attached a variety of event listeners to various form elements. Later,
Suppose that I have below code: <?php $html = ' <form id=formA> <!-- Form
Suppose that I have 3 form Main, Setting, Language. I start with Main and
Suppose I have an event KeyPress subscribed to by various classes. Assume that Class
suppose I have some numbers that form a series for example: 652,328,1,254 and I
Suppose you have a button on a form that counts to 1000 in a
I have a form that is suppose to be a POST to CREATE action

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.