JavaScript Client-side Form Validation

  Рет қаралды 718,601

Florin Pop

Florin Pop

Күн бұрын

Пікірлер: 497
@FlorinPop
@FlorinPop 4 жыл бұрын
Learn how to use 24 different JavaScript Array Methods: kzbin.info/aero/PLgBH1CvjOA62PBFIDq55-S6Beivje30A2
@ignaciobascougnet8471
@ignaciobascougnet8471 4 жыл бұрын
how you can refresh your misstake inputs, if they are all cons¿
@mrollins8277
@mrollins8277 4 жыл бұрын
Bro your video was nice but this validation is not working in my form, So could u please tell me what can be the problem or ambiguity.
@SpscMedia
@SpscMedia 4 жыл бұрын
Florin pop your are doing amazing. I want to tell you one thing zoom in the screen little bit, I am facing difficulties on my Palm device.
@utkarshtenguria3836
@utkarshtenguria3836 4 жыл бұрын
Which software
@turaleyyub5746
@turaleyyub5746 3 жыл бұрын
FLORIN POP can you say please why it doesnt go another page? you forgot about action="somewhere.php"
@aleb687
@aleb687 4 жыл бұрын
great video Florin! Just found amazing CSS shortcuts: m0 -> margin: 0; p0 -> padding: 0; l0 -> left: 0; t0 -> top: 0; ff -> font-family: sans-serif (with font highlighted ready to be changed) bgc -> background-color: #fff (with fff highlighted ready to be changed) and so forth and so on... Saves tons of typing !!
@FlorinPop
@FlorinPop 4 жыл бұрын
They do indeed! 😃
@archangel0137
@archangel0137 4 жыл бұрын
This is hands-down the FINEST form validation tutorial I've ever seen... big salute to you sir!
@thomassankara9980
@thomassankara9980 4 жыл бұрын
This was the first video from Florin I ever watched. I came back here today for reference for a project I'm working on. Thanks Florin
@tenminutetokyo2643
@tenminutetokyo2643 4 жыл бұрын
Best tut I’ve ever seen on YT. Why cant everyone make tuts this straightforward.
@FlorinPop
@FlorinPop 4 жыл бұрын
Aww... thank you! I’m happy you like it! ☺️
@hikari1690
@hikari1690 3 жыл бұрын
@@FlorinPop correct me if I’m wrong but the html email check is the same thing as the regex check right? Its just checking for an @ domain. So a@a.c will still work even with the custom function
@baithivinaykumar
@baithivinaykumar 3 жыл бұрын
@@FlorinPop hii sir can you probably provide your whatsapp I have some doubts
@anilporella7201
@anilporella7201 4 жыл бұрын
The Best ever made Tutorial on form validations through javascript. Great. A Big Salute
@FlorinPop
@FlorinPop 4 жыл бұрын
Thank you! I’m very happy you found it useful!
@dontavious3591
@dontavious3591 2 жыл бұрын
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!
@ajitganjave8837
@ajitganjave8837 Жыл бұрын
🎯 Key Takeaways for quick navigation: 00:00 🛠️ The video tutorial demonstrates how to implement client-side form validation using JavaScript for a form with four input fields: username, email, password, and password check. 01:22 📝 The tutorial is divided into two parts: HTML/CSS implementation and JavaScript implementation. Viewers can skip the HTML/CSS section if they prefer. 05:42 🎨 The HTML/CSS part focuses on building the basic layout and styling of the form, including form containers, headers, labels, inputs, icons, and error messages. 15:25 ⌨️ JavaScript code is used to add event listeners to the form submission and validate the inputs' values. 19:27 ✅ The form validation checks if the input fields are empty and if the email is in a valid format using regular expressions. 23:47 🔑 For invalid inputs, appropriate error messages are displayed, and error classes are added to indicate errors in the form controls' styling. 28:20 🎊 As an extra challenge, viewers are encouraged to implement a success message when all form inputs have valid values.
@hughmungus1767
@hughmungus1767 4 жыл бұрын
Thank you Florin, that was very helpful! My JavaScript was VERY rusty and this helped me develop good solid client-side validation checking on the forms I'm using in my Laravel project.
@FlorinPop
@FlorinPop 4 жыл бұрын
I’m very happy to hear this!!
@jryan2356
@jryan2356 3 жыл бұрын
I’ve been pulling my hair out trying to understand form validation properly.. thank god I found your video! So simple to understand now, and you’ve gained a new subscriber
@pearlstar1427
@pearlstar1427 4 жыл бұрын
16:44 I had trouble getting the addEventListener to work. So if anyone has that same problem, try moving your script tag (linking the javascript file) to the end of the body tag of your html file :)
@SonNguyenVie
@SonNguyenVie 4 жыл бұрын
you save my life bro :D
@saladd2244
@saladd2244 3 жыл бұрын
bro thankyou, u really saved me
@joshuaerana1249
@joshuaerana1249 2 жыл бұрын
how
@keyurbarot8663
@keyurbarot8663 2 жыл бұрын
I am still not able to get it working ??
@ma.chelseajoyyoung1228
@ma.chelseajoyyoung1228 2 жыл бұрын
U SAVED ME ❤
@kenkioqqo
@kenkioqqo 3 жыл бұрын
Maximum appreciation, Florin. Your tutorials is the best way for beginners to learn how to practically add JavaScript to HTML&CSS files. I've been learning HTML & CSS, and JavaScript syntax from online platforms. But I've not found anyone teaching how to bring them all together in a practical manner like you have. You've literally given me the missing link. My 'Aha!" moment! Great work, Mr Pop.
@gunnerdreem
@gunnerdreem 3 жыл бұрын
try whatsdev's tutorials
@kensleylewis
@kensleylewis 3 жыл бұрын
You make CodePen look it's the "Chosen One!!!" Love it!
@moussaouikhouloud
@moussaouikhouloud 4 жыл бұрын
you r the best u save my university degree this year all love
@kulvannda
@kulvannda 4 жыл бұрын
too xD
@pranjalverma9171
@pranjalverma9171 4 жыл бұрын
Hi, Can you tell me please that in 16:43 you make an argument 'e' , so what will it target and how?
@storyofafootballer5261
@storyofafootballer5261 4 жыл бұрын
(e) = event , search up for more information in google , u can find alot information.
@likhithsasank8017
@likhithsasank8017 3 жыл бұрын
I have watched many tutorials ...But the way of writing code by florin is amazing ✌️🎉..Love from india❤️
@rahulghodmare5394
@rahulghodmare5394 3 жыл бұрын
Hello Sir, I am Js learner ,typically i saw most video.But I like these video. Which clear and straightforward.
@wesleyfeller2114
@wesleyfeller2114 5 жыл бұрын
I would love to see a video of a contact form with the form validation and the feature of having it emailed to your gmail 😀😀 solid video!
@sangramnath3452
@sangramnath3452 5 жыл бұрын
@@FlorinPop Please do consider..🙂
@senju31
@senju31 4 жыл бұрын
I literally just solved this. I can share the source code if you want.
@lauraochoa96
@lauraochoa96 4 жыл бұрын
@@senju31 I'm trying the same. It would be a great help for me.
@mknight7209
@mknight7209 4 жыл бұрын
@@senju31 please do
@geebsayshi
@geebsayshi 4 жыл бұрын
You're the best tbh. Your tutorials are straightforward and practicable. I only started to enjoy learning programming when I found your channel. Thank you
@FlorinPop
@FlorinPop 4 жыл бұрын
Aww! That’s so nice of you to say! I’m happy to hear I was helpful 😃
@syner144
@syner144 4 жыл бұрын
DUDE IM SO HAPPY THAT I SUBSCRIBED TO YOU I SWEAR IM GETTING MY LAPTOP AND IM GONNA LEARN MUCH FROM YOU LOVE YOU BRO FROM THE NETHERLANDS
@worthitmakethis7792
@worthitmakethis7792 3 жыл бұрын
Thanks so much for this! I have been having a hard time grasping this and have spent over a week reading and watching every video I could find. I am so lucky to have found this! You are awesome!!!
@RedEyedJedi
@RedEyedJedi 5 жыл бұрын
Thanks, Florin this is the perfect amount of detail. Excellent tutorial!
@RedEyedJedi
@RedEyedJedi 5 жыл бұрын
@@FlorinPop No, thank you for putting in the time and effort to make it. I really appreciate it :)
@vuongtran5799
@vuongtran5799 4 жыл бұрын
Love the way you control your code, hope to see more video especially for frontend JS. Thanks
@FlorinPop
@FlorinPop 4 жыл бұрын
Will do!
@peters7278
@peters7278 4 жыл бұрын
It's cool to see you type the code. I'm new and learning to use editors, so I like to watch the little things that pros do. I'm not sure if you have a "tips and tricks" for editors like Codepen, VisualStudio Code, or any other ones that you use in daily work, but I'd be interested in seeing a basic intro to these as well.
@FlorinPop
@FlorinPop 4 жыл бұрын
Noted! Thank you
@gauravpanwar4413
@gauravpanwar4413 3 жыл бұрын
After searching for so many ways this video give me the best solution. Thanks a lot 😊
@ninja-gh
@ninja-gh 4 жыл бұрын
Awesome lecturer, neat and clean way of validating user inputs. Thanks from India
@riteshmahajan5209
@riteshmahajan5209 4 жыл бұрын
one of the wonderful quality tutorial on form creation, styling and validation. :)))) Thanks Florin ...I don't know how to make a thumbs up..
@Anahitacode
@Anahitacode 2 жыл бұрын
Best tutorial a have ever seen) Thank You
@renatoloefstop
@renatoloefstop Жыл бұрын
nice video. I liked the the design of the form and the logic behind the validation.
@676005ga
@676005ga 4 жыл бұрын
Thanks Florin! You are amazing! I have a question about this tutorial. How do we submit the form after we've done validation? I have trouble doing them both in the same time. I can only send post without validation or get a blank page after sending post with validation. After trying for 4 hours, I add this code below into checkInputs function and finally I can echo out the post data! My code is a mess and I apologize for that, I'm working on organizing it. if (document.querySelectorAll('.form-control')[0].classList.contains('success') && document.querySelectorAll('.form-control')[1].classList.contains('success') && document.querySelectorAll('.form-control')[2].classList.contains('success') && document.querySelectorAll('.form-control')[3].classList.contains('success')) { form.submit() }
@yondaime8520
@yondaime8520 3 жыл бұрын
the form is only reloading but it is not submitting
@isaackash2401
@isaackash2401 3 жыл бұрын
I was very glad to watch this tutorial.
@zdarofMERGAITES
@zdarofMERGAITES 4 жыл бұрын
Great lesson, teacher. Your VS skills are something really coool!
@ankurtyagi4770
@ankurtyagi4770 4 жыл бұрын
Thanks for the great effort for community.
@alanthomasgramont
@alanthomasgramont 3 жыл бұрын
Definitely should be handling the change event by setting the name on all the elements and then getting the name from the event.target.name. No need to get every control in a const
@tradewinds9832
@tradewinds9832 4 жыл бұрын
Excellent tutorial! You deserve more views. Awesomeness!
@timtech9361
@timtech9361 2 жыл бұрын
create function at the end of checkInputs called: "formSuccess(email, country, zipcode, password, confirmPassword)" const formSuccess = (...input) => { if (input.every((element) => { return element.parentElement.classList.value === 'form-control success' })) { alert('Form Submitted') } else { return; } } Not sure if this is the best solution, but it def works.
@ATIWatchReviews
@ATIWatchReviews 4 жыл бұрын
Florin is definitely my new favourite instructor. Thank you
@arjanelor9568
@arjanelor9568 3 жыл бұрын
I appreciate the project challenge you have there it helps me to practice my JS coding
@nahorovidiu8307
@nahorovidiu8307 4 жыл бұрын
Felicitati, Florin!
@FlorinPop
@FlorinPop 4 жыл бұрын
Multumesc 😃
@jflo911b
@jflo911b 4 жыл бұрын
Thanks so much Florin! Awesome tutorial!
@dominicamaljoef6693
@dominicamaljoef6693 4 жыл бұрын
Thanks for this great video Florin...
@williamlowry
@williamlowry 3 жыл бұрын
this was an absolutely phenomenal tutorial. thank you so much!!
@legitimategamerhd6773
@legitimategamerhd6773 4 жыл бұрын
I've been using vscode for about a month and I never knew that shorthand element creator feature @ 2:07 was a thing. Thanks :)
@RAHULROY-sb9nt
@RAHULROY-sb9nt 3 жыл бұрын
I am from india..i had problem with foreign accents.but yours fine and clear.
@nickwoodward819
@nickwoodward819 2 жыл бұрын
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!
@nohaderwa
@nohaderwa 3 жыл бұрын
Straight to the point 👏🏻👏🏻 Keep the hard work, man.
@l3_p14f9
@l3_p14f9 3 жыл бұрын
First, thank you for not having shitty music at all. Second, thank you for being specific. Third, I subscribed after this, rock on!
@FlorinPop
@FlorinPop 3 жыл бұрын
Thank you 🙏
@mizuesato4775
@mizuesato4775 4 жыл бұрын
Thank you Florin 😊 I like this video to learn about HTML CSS and Javascript. I hope to see more video especially for beginner.
@mahdimotallebi7207
@mahdimotallebi7207 3 жыл бұрын
Thank you Florin Great tutorial
@kimjiyoung8655
@kimjiyoung8655 2 жыл бұрын
Thank you so much Florin! :D
@aurielklasovsky1435
@aurielklasovsky1435 3 жыл бұрын
That was awesome. Thank you so much for this great tutorial!
@amitsinha5621
@amitsinha5621 4 жыл бұрын
This vedio got something in css and js both, woah it feels good clearing the doubt.
@The_Daily_Shorts
@The_Daily_Shorts 4 жыл бұрын
Thanks for making this video. it's helpful!
@FlorinPop
@FlorinPop 4 жыл бұрын
Gladly
@elrasheedsiddig7711
@elrasheedsiddig7711 3 жыл бұрын
This is a great and helpful video. I had an assignment and it helped me a lot. Thank you!
@medmess254
@medmess254 4 жыл бұрын
Thank you for the great job. It would be nice to explain how to submit the form after data validation.
@Zsh3107
@Zsh3107 3 жыл бұрын
Amazing bro thanks so much from Iran❤
@cynthiamanor6565
@cynthiamanor6565 4 жыл бұрын
Great tutorial! Thanks for posting.
@nicholascottle8531
@nicholascottle8531 3 жыл бұрын
The perfect tutorial doesn't exi...
@decall
@decall 3 жыл бұрын
thank you Florin for the great tutorial, it was just what I needed..
@spakklife
@spakklife 3 жыл бұрын
I really love your tutorial because it's awesome and looks way cool! It's actually my first time seeing your video!
@bouhellalmokhtaraymene5487
@bouhellalmokhtaraymene5487 Жыл бұрын
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 ?
@FlorinPop
@FlorinPop Жыл бұрын
Submit manually with form.submit()
@bouhellalmokhtaraymene5487
@bouhellalmokhtaraymene5487 Жыл бұрын
@@FlorinPop thank you very much sir it's working I have another problem is there any way to prevent the page from refreshing because I have another form hidden under the original one so by completing the first form the page will be refreshed and I will lose progress and can't get to the second form
@touhidh6
@touhidh6 4 жыл бұрын
I am face a problem. This validation is awesome but can't work form action. Like action.php. why the submit button can't procced to the action page.
@rohanisembiring2889
@rohanisembiring2889 4 жыл бұрын
ofcourse u can't , you need to use required statement for it. then customized required message for it. Required was default by all browser can pass form action to all post method before sending it to server side render
@EmmanueloluseyiAdeniyi
@EmmanueloluseyiAdeniyi 4 жыл бұрын
@@rohanisembiring2889 can you please be elaborate with your message? I'm also trying to build something like @Md
@edgarspujats8282
@edgarspujats8282 3 жыл бұрын
I know i'm kinda late but still thank you very much ! Your code is very clean and understandable, very appreciate your work !! :)
@TheDream975
@TheDream975 3 жыл бұрын
I like your code. Clear and understandable !👍👍
@lucasruiz6176
@lucasruiz6176 Жыл бұрын
Very neat video in terms of the information provided, thank you very much for helping us.
@juantato2012
@juantato2012 3 жыл бұрын
This is by far the best tutorial I've ever followed. Thank you so much!
@AlMagic911
@AlMagic911 2 жыл бұрын
Great video, thanks!!
@digihz_data
@digihz_data 2 жыл бұрын
Great presentation.
@swapnilcodes
@swapnilcodes 3 жыл бұрын
Awesome tutorial...💥♥️
@AdriiPing
@AdriiPing 4 жыл бұрын
As always helping me a lot w/ ur vids :)
@libertad83y
@libertad83y 4 жыл бұрын
Thank you Florin, invaluable tutorial, thumbs up!
@FlorinPop
@FlorinPop 4 жыл бұрын
👍🏻👍🏻👍🏻
@John-wx3zn
@John-wx3zn 2 жыл бұрын
Thank you. I learned a lot.
@helgeope
@helgeope 4 жыл бұрын
Very well explained!
@fernastereo
@fernastereo 4 жыл бұрын
Thanks pal, you saved my day
@ovidiublaga1
@ovidiublaga1 4 жыл бұрын
Foarte misto!
@FlorinPop
@FlorinPop 4 жыл бұрын
Ma bucur ca iti place 😃
@ovidiublaga1
@ovidiublaga1 4 жыл бұрын
@@FlorinPop am aflat de canal de la traversy media. Am o grămadă de treaba zilele astea :) super tare. Meriți mult mai mti subscriberi
@FlorinPop
@FlorinPop 4 жыл бұрын
Ovidiu Blaga Multumesc pentru cuvintele frumoase! De unde ai aflat de la Brad? Twitter sau KZbin?
@ovidiublaga1
@ovidiublaga1 4 жыл бұрын
@@FlorinPop de la videoul cu password generator în javascript
@kto523
@kto523 2 жыл бұрын
Thank you for this video!
@pascalgage2695
@pascalgage2695 4 жыл бұрын
A very nice work !!! Excellent ! Thanks ! I'm just using a text editor but it works !
@Omar_Muhammad
@Omar_Muhammad 3 жыл бұрын
Thanks, man very helpful and informative video.
@zubaydullo_abdirakhmonov
@zubaydullo_abdirakhmonov 3 жыл бұрын
Thanks for such a useful video, keep up the good work.
@alfrugo
@alfrugo 2 жыл бұрын
great job! thanks for sharing!
@rakeshkharvi3029
@rakeshkharvi3029 4 жыл бұрын
You just helped me a lot buddy ❤️
@Onlineteaching10
@Onlineteaching10 3 жыл бұрын
NICE INFORMATIVE .WELL DONE
@hamzajirah
@hamzajirah 5 жыл бұрын
Good job, Florin.
@sabuein
@sabuein 3 жыл бұрын
Thank you, Florin.
@ZuzzuKiller
@ZuzzuKiller 4 жыл бұрын
Someone can help me? I copy and paste the code but when all the fields are correct the submit button don't work, seems like the js block the submit.
@dipzera1025
@dipzera1025 4 жыл бұрын
How would you combine this with a POST Request?
@ChrisSmith-zn3li
@ChrisSmith-zn3li 3 жыл бұрын
could use the fetch() API in JavaScript, the API would communicate with the server code
@faruquedewan
@faruquedewan Жыл бұрын
A lifesaver. Thanl You! :)
@dienhoangkhai6025
@dienhoangkhai6025 4 жыл бұрын
Hey guy, Can you make video about Javascript , how to improve Javascript skills? Thank you
@robertoenriquechavezrodrig731
@robertoenriquechavezrodrig731 3 жыл бұрын
Thank you so much, bro, this is a great tutorial. God bless you! Regards from Russia. 04.12.2021
@Shriram-ty2kk
@Shriram-ty2kk 4 жыл бұрын
Clear as a crystal!
@raigeki002
@raigeki002 2 жыл бұрын
what editor are you using for your videos? i like the 'auto-update' rendering on the output side!
@quickfoods_qf
@quickfoods_qf 3 жыл бұрын
This is organized and really very easy to understand, Thank you Florin
@abdishakur2489
@abdishakur2489 4 жыл бұрын
Wow great video subscribed it instantly 😍.
@FlorinPop
@FlorinPop 4 жыл бұрын
Thank you 🙏
@mansoormohmand5852
@mansoormohmand5852 4 жыл бұрын
easy and wonderful
@pjguitar15
@pjguitar15 3 жыл бұрын
Am I the only one who spends too much time on positioning, centering, and all styling and not getting it right haha. Thanks you for this tutorial btw 🙏
@sakshipatil2094
@sakshipatil2094 3 жыл бұрын
Love from India ❤️❤️❤️
@renemorales9364
@renemorales9364 3 жыл бұрын
great tutorial 👍
@ozzyozborne4539
@ozzyozborne4539 5 жыл бұрын
Great video! but why you have to press submit so I can if its valid or not? isn't better if it will show valid directly?
@turaleyyub5746
@turaleyyub5746 3 жыл бұрын
But it doesnt go to another page(action="formControl.php")?..e.pereventDefault is in right place?
@syberiaok
@syberiaok 4 жыл бұрын
Super great tutorial and very well and simply explained for a beginner like me!thanks a lot!!!!
@FlorinPop
@FlorinPop 4 жыл бұрын
Thank you for watching 😃
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
Improve your form validation hints without JS!
12:46
Kevin Powell
Рет қаралды 68 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 16 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 7 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 55 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
10 Form Validation Tips Every Web Developer SHOULD KNOW!
9:22
James Q Quick
Рет қаралды 18 М.
Making a Game in JavaScript with No Experience
5:49
Goodgis
Рет қаралды 897 М.
BEST Ways to Handle and Validate React Forms without a Library
42:38
This is the Only Right Way to Write React clean-code - SOLID
18:23
Form validation using Javascript on the client side for beginners
9:35
JavaScript Academy
Рет қаралды 415 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
10 JavaScript Projects in 1 Hour - Coding Challenge 🔥
1:01:11
Florin Pop
Рет қаралды 267 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 496 М.
The BEST way to do form validation in JavaScript
59:45
Code With Bubb
Рет қаралды 20 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 16 МЛН