Tagged Questions
0
votes
1answer
29 views
Can this date-validation function can be simplified further or is it the correct approach?
I am doing a date validation. I have no. of pages, which have the date field. User can input the date like "220875" or "22AUG75" - I need to test both and check the length as well.
...
4
votes
1answer
36 views
Multiple drop down validation
I have written some jQuery which validates a group of drop downs. It checks the text value selected in all the drop downs (first three characters), and if there is a duplicate, it warns the user.
...
3
votes
1answer
71 views
Can this form validation be simplified made to memory leak free for all browsers?
I am doing a validation and I believe that there are many things that can be reduced or removed. I am still re-working this. But I am looking for some experts to look at my code and offer the very ...
0
votes
0answers
43 views
Validating a model and focus to the element if validation fails
I am using Backbone Marionette - I would like to set the user name and password if that passes the model validation method.
I am highly confused with that. Please show me a handy approach or correct ...
1
vote
0answers
58 views
Form Validation Evaluation
I've been trying several styles of validation code for a form. I was wondering if this is good or needs some improvement or just trash it and use jQuery validator code?
...
2
votes
2answers
86 views
Improving and shortening code for select validation
Is there any way to make that code shorter? I still want to use jQuery. I don't want to use any validation script.
...
5
votes
2answers
391 views
jQuery wrapper of Parsley.js
In a project, I have a lot of HTML forms without validation and I want to add a front end validation, in a quick way. I start looking for a library and I met Parsley.js. It's a good library, but if I ...
6
votes
1answer
1k views
Checking input and email field
I've written this as part of my contact form on my website. It checks to see if required inputs are empty, if so adds a red warning color and text. It also checks the email field for a properly ...
6
votes
2answers
108 views
Simplifying this form validation script
Can anyone please help me to simplify this form validation script? It works great but I was just wondering if I can get some help to make it simpler. Your opinion on the approach I used below is ...
1
vote
2answers
95 views
Making the code smaller and manageable
I'm trying to make my code easier to understand by making it more correct and maintainable.
Here's the code I'm trying to simplify:
...
1
vote
1answer
116 views
Simplify jQuery validation
I wrote a script for validate the input field for following requirements
Not null
Multiple of hundreds
Less than needed amount
Here is my script:
...
0
votes
1answer
521 views
Form validation - security and input specification
So I'm working on a register form and I have four fields: name, username, email and password. I pick up the values of these fields in jQuery and depending on if all the fields are filled, I pass them ...
1
vote
1answer
154 views
Would like help on improving my jQuery Validation code
Would like some assistance in improving my jQuery validation code. I have some repeated code, but I am not sure how to write it in a way so that I don't have to keep repeating the same code over and ...
1
vote
1answer
82 views
Is this a solid basic form validation script?
Is this a good form validation script? I'm using jQuery.
...
2
votes
1answer
4k views
My login with AJAX and PHP
In your opinion, do I need to do all these validations. I thought to do well and stay safe but I seriously raises the question if it isn't slower.
jQuery code
...
6
votes
0answers
2k views
Writing better code for validating a credit card
I recently created an extension which detects the type of credit card based on the numbers entered in and formats it. I am using Luhn Algorithm for validating credit card numbers and I am using jQuery ...
4
votes
1answer
507 views
Ajax form validation
This is my first ever attempt at Ajax form validation, and everything works as expected, the final true example will hold a lot more input fields than in my testing scripts which are below.
The file ...