JavaScript Client-side Form Validation

JavaScript Client-side Form Validation

Florin Pop

4 года назад

709,180 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Just Rising
Just Rising - 11.09.2023 23:08

Please can anyone help with making the form submit?

Ответить
johan
johan - 29.07.2023 12:56

i know this video is 3yo but i do have a super stupid question ^^ . (sorry bad english) , so, thoses security you put on the forms in js , if you were to do some backend on it, you also could put thoses security in the backend. how then do you know where to add them, front or back. would it be entirely up to you to choose?

Ответить
Faruque Dewan
Faruque Dewan - 24.06.2023 09:06

A lifesaver. Thanl You! :)

Ответить
Sharif Magembe
Sharif Magembe - 21.06.2023 17:39

Hey Florin

Ответить
jiya chouhan
jiya chouhan - 01.05.2023 05:30

git k link ni mil raha

Ответить
Bouhellal Mokhtar Aymene
Bouhellal Mokhtar Aymene - 14.04.2023 09:20

this is a form validation so we need to send some data to the server but this isn't gonna happen by using the preventdefault methode , any solution ?

Ответить
Lucas Ruiz
Lucas Ruiz - 11.02.2023 21:12

Very neat video in terms of the information provided, thank you very much for helping us.

Ответить
Sanchit Sharma
Sanchit Sharma - 10.02.2023 13:15

How to disable the hover effect from JavaScript file after limited attempts. Any Idea?

Ответить
Schuster Silva
Schuster Silva - 21.01.2023 00:25

You really helped me with this one! Thank you very much! Your tutorial is awesome!

Ответить
TAMIZHAN CREATIVE STUDIO
TAMIZHAN CREATIVE STUDIO - 16.01.2023 13:43

plesz tell how to show success mesage to another page

Ответить
Renato Loefstop
Renato Loefstop - 26.12.2022 17:41

nice video. I liked the the design of the form and the logic behind the validation.

Ответить
Infinity Tube
Infinity Tube - 02.12.2022 22:43

am really gratefull

Ответить
J Cole
J Cole - 26.11.2022 14:37

do you also have an example for date of birth (18 years old above) validation?

Ответить
gfrsaaaar
gfrsaaaar - 22.11.2022 03:07

Will that work after using node js?

Ответить
HR!T
HR!T - 29.10.2022 15:56

I really enjoyed the html-css part which I did not intend to watch at all.

Ответить
Alexsia Farron
Alexsia Farron - 14.10.2022 09:31

For some reason I can't get the classes to change/update so there's no visual that the validation is working.

Ответить
Adesanya Oluwatobiloba
Adesanya Oluwatobiloba - 07.10.2022 17:46

Nice! thanks for the tutorial.
I noticed that on submitting, the validated inputs tends to submit even though other inputs ain't validated. Is there a way I can find my way around this?

Ответить
Jan Theman
Jan Theman - 05.10.2022 14:21

Thank you so much for this tutorial, I have learned a lot. I can`t figur out how to add a success message to the javascript though. I want to redirect the successful form page to a "thankyou.html" page. Anyone?

Ответить
ShortsForYouAllDay
ShortsForYouAllDay - 09.09.2022 15:08

How can i close form and display another text ? Like when everything is validate i press submit, form is cloded and in that spot apears another text, like when u subcribe email

Ответить
Dontavious
Dontavious - 09.09.2022 01:52

I really appreciate this video. It helped me out tremendously with my first JavaScript project which landed me the opportunity to get my first gig as a developer. Keep up the great work!

Ответить
ShortsForYouAllDay
ShortsForYouAllDay - 07.09.2022 16:34

Great video, thanks!!

Ответить
Jherson D'stefano Mejia Gonzalez
Jherson D'stefano Mejia Gonzalez - 02.09.2022 16:26

Thank you for this video!

Ответить
Anna
Anna - 31.08.2022 16:04

Best tutorial a have ever seen) Thank You

Ответить
Lautaro De Benedectis
Lautaro De Benedectis - 17.08.2022 20:51

awesome

Ответить
Shaun Malik
Shaun Malik - 08.08.2022 18:12

Great 👍👌thanks

Ответить
United Code
United Code - 06.08.2022 21:40

Thanks, cool

Ответить
Bikash Datta
Bikash Datta - 23.07.2022 20:48

Thanks a lot.

Ответить
Adil Gadirov
Adil Gadirov - 17.07.2022 22:48

awesome

Ответить
Rully Ahsani
Rully Ahsani - 12.07.2022 05:58

awesome, thanks for tutorial

Ответить
Alif Ahad
Alif Ahad - 17.06.2022 12:17

But its no working

Ответить
Dev Sealkeen
Dev Sealkeen - 16.06.2022 06:12

It's left to implement the server-side back-end stuff I guess ... And it's all on our own. ;_|
thanks for the tutorial

Ответить
Michael Shehta
Michael Shehta - 10.06.2022 20:15

The Source Code don't Match With the Output Of video This True Or Not ,, Please Replay

Ответить
Hans Sandberg
Hans Sandberg - 25.05.2022 22:14

Great presentation.

Ответить
Louzy Nerd
Louzy Nerd - 13.05.2022 01:19

the default google error messages are showing instead of the custom ones i added, idk what i did wrong please help >:(

Ответить
Faithful Soldier ✝
Faithful Soldier ✝ - 24.04.2022 09:16

Thank you for the video sir! You're a legend.
Though, I would like to know something.
To bypass the e.preventDefault() function to make my submit button work, here's an example of what I've done at the end of checkInputs() function :

checkInputs(){
if ( !(usernameValue === ' ') && !(emailValue===' ')&& !(passwordValue === ' ') && !(password2 === ' ') {
isValid = true;
}
return isValid;
}


if (checkInputs() === true ){
FORM.submit();
}

Was this the good way to make it work or is there a better way to handle this form validation?

Ответить
raigeki002
raigeki002 - 19.04.2022 04:58

what editor are you using for your videos? i like the 'auto-update' rendering on the output side!

Ответить
Aindrila Das
Aindrila Das - 18.04.2022 08:56

You always kept the e.preventDefault true which is not letting me submit my form after validating every thing to be True, please help me .. I'm a beginner and I can't fix it. 😞

Ответить
Victor A
Victor A - 11.04.2022 01:27

Amigo. Header is not pronounced "HeaTHer" ...pronounce it like if there was an R in there (or rather a T or even a double TT [Heatter]) => the yankee way

Ответить
Irfan Isgandarov
Irfan Isgandarov - 04.04.2022 19:55

why my icons doesnt seen

Ответить
Agent Smith
Agent Smith - 01.04.2022 15:04

Ty

Ответить
Wilmer Vargas
Wilmer Vargas - 26.03.2022 05:59

Muy bueno esta esa validacion.. mi pregunta es como lo envio por ajax cuando todo el formulario este validado...de antemano muchas gracias...

Ответить
Al-Doori
Al-Doori - 25.03.2022 00:27

Thank you so much

Ответить
John
John - 18.03.2022 22:12

Thank you. I learned a lot.

Ответить
Full Games
Full Games - 17.03.2022 00:34

Elegant code ❤️

Ответить
nick woodward
nick woodward - 06.03.2022 01:54

Just a suggestion - when you're writing your css you jump up and down the block adding properties. This means that if you're following along, but perhaps a property or two behind, you look up at the screen and the property you've just written is no longer visible (off the bottom of the screen) as you've gone to the top of the style block to write a different property. Can be pretty jarring!

But thanks, great guide!

Ответить
Alfredo Diez
Alfredo Diez - 03.03.2022 21:49

great job! thanks for sharing!

Ответить
Michał Markiewicz
Michał Markiewicz - 01.03.2022 17:56

Isn't it better to loop through input elements and check if one of them doesn't have a value? Instead of making if statements for each of them

Ответить