JavaScript Form Validation

JavaScript Form Validation

Web Dev Simplified

5 лет назад

905,307 Просмотров

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


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

@subliminakeys1674
@subliminakeys1674 - 02.10.2022 22:15

Okay I've watched tons of your videos... How do you copy and paste so fast? You are definitely not using the keyboard. It seems like you are just dbl clicking or something...

Ответить
@OutMagic
@OutMagic - 06.10.2022 15:03

So helpful man, thank you C:

Ответить
@pawansubedi8544
@pawansubedi8544 - 15.10.2022 14:51

if(name.value ==null) i have does this excluding (names.value====" ") but it doesnot work..whats the problem any solution

Ответить
@AkashSingh-hz3xc
@AkashSingh-hz3xc - 19.10.2022 10:35

😊❤❤

Ответить
@salwashafrin1829
@salwashafrin1829 - 21.10.2022 10:16

Thank you ❤️

Ответить
@ocean.w.a.v.e.s
@ocean.w.a.v.e.s - 26.10.2022 19:34

hey do you have a contact form submit video??

Ответить
@user13rs258
@user13rs258 - 04.11.2022 18:42

So this validation we are applying through Javascript is known as server side validation? Or just front-end validation??
Because in the html it's doesn't shows up so it shouldn't be front-end validation right it must be server side? 😅😅😅
And if we did validation in the back-end that will also be known as Server side validation right???
Please help me clear my doubt..
Thanks!

Ответить
@saikumardasari4220
@saikumardasari4220 - 06.11.2022 07:49

how we can use feildset with legend tag in react with one example

Ответить
@dnjosh10
@dnjosh10 - 13.11.2022 03:53

Your explanation was very okay and understanding but you speak too fast

Ответить
@samannoyb
@samannoyb - 14.11.2022 14:54

Yeah, but "required" is also an option!

Ответить
@TheMaro57
@TheMaro57 - 28.11.2022 20:47

A note for beginners. The code runs by order so that things to work smoothly. Do not mix up the order of the If commands. Also take out the action figure inside the <form> because that is for only when the html file is hosted on a different server.

Ответить
@jayamali1422
@jayamali1422 - 08.12.2022 15:46

Thank you this video helped me a lot .

Ответить
@mohamedelyeszormati
@mohamedelyeszormati - 26.12.2022 08:47

This was a helpful tutorial, thank you.

Ответить
@palmwaytech
@palmwaytech - 01.01.2023 18:35

On a website , im trying to get some form of a contact form for clients to use , they enter some simple
information and it goes to a web hosting place , i log in and see the messages or it can go to my gmail. Any ideas?

Ответить
@ojomudamola6674
@ojomudamola6674 - 05.01.2023 20:10

But if I want the input.value to show the after being successful? . Pls I really need this

Ответить
@bhuppidhamii
@bhuppidhamii - 12.01.2023 14:52

this is not for beginners

Ответить
@bhuppidhamii
@bhuppidhamii - 12.01.2023 14:52

please make a video for beginners

Ответить
@paulpancake
@paulpancake - 29.01.2023 00:45

Thank you for the tutorial. But how do I enable the default again, after giving a false password once and the correcting it? It keeps showing the error message :(

Ответить
@OhOk616
@OhOk616 - 12.02.2023 21:52

Thanks for the help

Ответить
@degsewtegegne
@degsewtegegne - 25.02.2023 13:06

Thank you very much! Short
And it's easy.👍

Ответить
@luckyplayer5525
@luckyplayer5525 - 04.03.2023 15:46

God bless you

Ответить
@m.j.mcintear793
@m.j.mcintear793 - 09.03.2023 04:52

how to call the function with each of these variables as an argument emailaddress variable and emailconfirm variables

Ответить
@dunialebowski8320
@dunialebowski8320 - 26.03.2023 16:30

hello, is anyone having issues when typing name.value in their editor? I'm using Visual Studio code and whenever I write this, it has a strikethrough and this explanation "The declaration was marked as deprecated here."

Ответить
@lefamofokeng8291
@lefamofokeng8291 - 18.05.2023 06:36

I actually have always been intimidated by JS part of creating sites but you make that appear so fun . Thanks!😊

Ответить
@diogostein848
@diogostein848 - 20.05.2023 00:00

This helped me a lot. I was adding an event listener to the submit button, not the form. So the validation wasn't working. Thanks for the tutorial.

Ответить
@luisgustavo.5449
@luisgustavo.5449 - 21.05.2023 10:56

Nice video! But guys, please DON'T LIMIT THE PASSOWRD CHARACTERS to just 20 chars, othewise the hackers would be so grateful to you...

Ответить
@coding_with_mayavi0
@coding_with_mayavi0 - 21.05.2023 17:41

Bro iam used for prevent form but is showing uncaught typeError :cannot read properties of undifned(reading'addEventListner')
At (line) what happent

Ответить
@mark_pherz
@mark_pherz - 22.05.2023 11:26

I've done exactly same thing and nothing worked, great video tho ahah

Ответить
@lgiardili
@lgiardili - 03.06.2023 18:43

good job!! thanks!!

Ответить
@oliveroshea5765
@oliveroshea5765 - 17.06.2023 09:55

Awesome, many thanks

Ответить
@spriteman1925
@spriteman1925 - 20.06.2023 19:13

are you fucking retarded? you are supposed to teach not just tell em to do this and that this is basically copying and pasting but worse cause nothing will work

Ответить
@Depa3
@Depa3 - 01.07.2023 14:45

When I click submit it send me to diskC

Ответить
@ssenkoomianthony6006
@ssenkoomianthony6006 - 11.07.2023 14:42

hello i appreciate your timely assistance
please
how can set information by default while devolving a website?
coz i am stuck from some where.

Ответить
@kuba3254
@kuba3254 - 30.07.2023 17:41

Too fast and to chaotic.

Ответить
@victorsvensson7914
@victorsvensson7914 - 26.08.2023 01:22

Why are you not using <input type="submit">

Ответить
@victorsvensson7914
@victorsvensson7914 - 28.08.2023 21:39

The more than and less than conerning the amount of charcters can be done in html. You do not need Javascript for that. If someone does not have Javascript enabled, then your validation will fail. That is not good WCAG practice. 😛

Ответить
@gravitashebynimus3425
@gravitashebynimus3425 - 30.09.2023 14:57

the .innerText for some reason dosn't work for me, it's not included in the dropdown selection when doing erroeElement.innerText = messages.join(', ');

Ответить
@TheMaster201989
@TheMaster201989 - 09.11.2023 04:30

nice work and great simply explained it

Ответить
@xxapoloxx
@xxapoloxx - 26.11.2023 03:08

How do you addapt Forms to work well with SPAs and Ajax? they seem like legacy code from the 90s

Ответить
@KyleDecena
@KyleDecena - 19.12.2023 05:23

that's me

Ответить
@LJ-tb4om
@LJ-tb4om - 05.01.2024 09:22

how do I validate/require a number, uppercase, and lowercase letter? It doesn't seem to follow the same format as the length requirements.

Ответить
@ileanacastillo9425
@ileanacastillo9425 - 07.02.2024 12:21

Gracias bb

Ответить
@morphreynard6764
@morphreynard6764 - 26.03.2024 23:57

doesnt work.

Ответить
@17Kalash
@17Kalash - 30.04.2024 15:17

I don't get the use of defer inside the script where we connect the js in the head of the html

Ответить
@zhumabayevorymbek2548
@zhumabayevorymbek2548 - 05.05.2024 12:18

Cool, thx

Ответить
@shiviff5034
@shiviff5034 - 10.05.2024 09:14

Thanku very much

Ответить
@sophiahitch726
@sophiahitch726 - 20.07.2024 22:18

hello

Ответить
@hammaygaffy3730
@hammaygaffy3730 - 17.08.2024 13:36

Bhai bekar he

Ответить
@sakalagamingyt3563
@sakalagamingyt3563 - 06.10.2024 14:42

Incredible video! It helped me a lot

Ответить
@chujiwu68
@chujiwu68 - 09.10.2024 13:37

I can't test anything after the username validation part, because (unlike in the video) whenever I hit the submit button, it tries to submit the form, and I get a root directory page listing instead. I can't get any of the various password error notifications.

I've followed the video exactly. Any idea what I might be doing wrong?

Ответить