6
Is there some security issue or something like using only attributes, like required
in input
s, among others, instead of jQuery?
Or it’s just some option to use jQuery to customize the message only?
6
Is there some security issue or something like using only attributes, like required
in input
s, among others, instead of jQuery?
Or it’s just some option to use jQuery to customize the message only?
9
Technically, no problem. Mainly in relation to safety.
By this I mean that both validations are made in the user’s browser and nay represent security at no level to the system, other than a reminder to the user not to forget the fields.
From a security point of view, using both techniques is the same as using none, as a malicious user can easily forge a request to the server.
At all times execute the server validation and Sanitize the data so that your system is not infected, for example by SQL injection, tags injection <script>
and so on.
The reason for using custom code with jQuery or Javascript is flexibility, as you yourself mentioned in the question, and maintaining a consistent experience across browsers.
Browser other questions tagged javascript jquery html5
You are not signed in. Login or sign up in order to post.