JavaScript Client-side Form Validation

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 497

  • @FlorinPop
    @FlorinPop  4 ปีที่แล้ว +37

    Learn how to use 24 different JavaScript Array Methods: th-cam.com/play/PLgBH1CvjOA62PBFIDq55-S6Beivje30A2.html

    • @ignaciobascougnet8471
      @ignaciobascougnet8471 4 ปีที่แล้ว +1

      how you can refresh your misstake inputs, if they are all cons¿

    • @mrollins8277
      @mrollins8277 4 ปีที่แล้ว +2

      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 ปีที่แล้ว +1

      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 3 ปีที่แล้ว +1

      Which software

    • @turaleyyub5746
      @turaleyyub5746 3 ปีที่แล้ว

      FLORIN POP can you say please why it doesnt go another page? you forgot about action="somewhere.php"

  • @archangel0137
    @archangel0137 3 ปีที่แล้ว +35

    This is hands-down the FINEST form validation tutorial I've ever seen... big salute to you sir!

  • @thomassankara9980
    @thomassankara9980 4 ปีที่แล้ว +9

    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 ปีที่แล้ว +31

    Best tut I’ve ever seen on YT. Why cant everyone make tuts this straightforward.

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว +3

      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

  • @aleb687
    @aleb687 4 ปีที่แล้ว +13

    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! 😃

  • @hughmungus1767
    @hughmungus1767 4 ปีที่แล้ว +16

    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 ปีที่แล้ว +2

      I’m very happy to hear this!!

  • @dontavious3591
    @dontavious3591 2 ปีที่แล้ว +8

    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!

  • @anilporella7201
    @anilporella7201 4 ปีที่แล้ว +18

    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!

  • @jryan2356
    @jryan2356 3 ปีที่แล้ว +1

    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

  • @kenkioqqo
    @kenkioqqo 3 ปีที่แล้ว +4

    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.

    • @whoruwonder
      @whoruwonder 2 ปีที่แล้ว

      try whatsdev's tutorials

  • @likhithsasank8017
    @likhithsasank8017 3 ปีที่แล้ว +9

    I have watched many tutorials ...But the way of writing code by florin is amazing ✌️🎉..Love from india❤️

  • @wesleyfeller2114
    @wesleyfeller2114 4 ปีที่แล้ว +28

    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 4 ปีที่แล้ว

      @@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

  • @gauravpanwar4413
    @gauravpanwar4413 3 ปีที่แล้ว +1

    After searching for so many ways this video give me the best solution. Thanks a lot 😊

  • @geebsayshi
    @geebsayshi 4 ปีที่แล้ว +5

    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 ปีที่แล้ว +1

      Aww! That’s so nice of you to say! I’m happy to hear I was helpful 😃

  • @worthitmakethis7792
    @worthitmakethis7792 2 ปีที่แล้ว

    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!!!

  • @kensleylewis
    @kensleylewis 3 ปีที่แล้ว +3

    You make CodePen look it's the "Chosen One!!!" Love it!

  • @RedEyedJedi
    @RedEyedJedi 4 ปีที่แล้ว +2

    Thanks, Florin this is the perfect amount of detail. Excellent tutorial!

    • @RedEyedJedi
      @RedEyedJedi 4 ปีที่แล้ว

      @@FlorinPop No, thank you for putting in the time and effort to make it. I really appreciate it :)

  • @ninja-gh
    @ninja-gh 4 ปีที่แล้ว +6

    Awesome lecturer, neat and clean way of validating user inputs. Thanks from India

  • @vuongtran5799
    @vuongtran5799 4 ปีที่แล้ว +4

    Love the way you control your code, hope to see more video especially for frontend JS. Thanks

  • @riteshmahajan5209
    @riteshmahajan5209 4 ปีที่แล้ว +3

    one of the wonderful quality tutorial on form creation, styling and validation. :)))) Thanks Florin ...I don't know how to make a thumbs up..

  • @rahulghodmare5394
    @rahulghodmare5394 2 ปีที่แล้ว

    Hello Sir, I am Js learner ,typically i saw most video.But I like these video. Which clear and straightforward.

  • @syner144
    @syner144 4 ปีที่แล้ว +3

    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

  • @moussaouikhouloud
    @moussaouikhouloud 4 ปีที่แล้ว +6

    you r the best u save my university degree this year
    all love

  • @arjanelor9568
    @arjanelor9568 3 ปีที่แล้ว +1

    I appreciate the project challenge you have there it helps me to practice my JS coding

  • @mizuesato4775
    @mizuesato4775 4 ปีที่แล้ว +5

    Thank you Florin 😊 I like this video to learn about HTML CSS and Javascript. I hope to see more video especially for beginner.

  • @peters7278
    @peters7278 4 ปีที่แล้ว +16

    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 ปีที่แล้ว +2

      Noted! Thank you

  • @renatoloefstop
    @renatoloefstop ปีที่แล้ว +1

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

  • @zdarofMERGAITES
    @zdarofMERGAITES 4 ปีที่แล้ว +4

    Great lesson, teacher. Your VS skills are something really coool!

  • @isaackash2401
    @isaackash2401 2 ปีที่แล้ว

    I was very glad to watch this tutorial.

  • @nahorovidiu8307
    @nahorovidiu8307 4 ปีที่แล้ว +3

    Felicitati, Florin!

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว

      Multumesc 😃

  • @williamlowry
    @williamlowry 3 ปีที่แล้ว +2

    this was an absolutely phenomenal tutorial. thank you so much!!

  • @Anahitacode
    @Anahitacode 2 ปีที่แล้ว

    Best tutorial a have ever seen) Thank You

  • @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!

  • @medmess254
    @medmess254 3 ปีที่แล้ว +2

    Thank you for the great job. It would be nice to explain how to submit the form after data validation.

  • @elrasheedsiddig7711
    @elrasheedsiddig7711 3 ปีที่แล้ว

    This is a great and helpful video. I had an assignment and it helped me a lot. Thank you!

  • @jflo911b
    @jflo911b 4 ปีที่แล้ว

    Thanks so much Florin! Awesome tutorial!

  • @lucasruiz6176
    @lucasruiz6176 ปีที่แล้ว

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

  • @ankurtyagi4770
    @ankurtyagi4770 4 ปีที่แล้ว +3

    Thanks for the great effort for community.

  • @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 🙏

  • @amitsinha5621
    @amitsinha5621 4 ปีที่แล้ว

    This vedio got something in css and js both, woah it feels good clearing the doubt.

  • @edgarspujats8282
    @edgarspujats8282 2 ปีที่แล้ว

    I know i'm kinda late but still thank you very much ! Your code is very clean and understandable, very appreciate your work !! :)

  • @tradewinds9832
    @tradewinds9832 4 ปีที่แล้ว

    Excellent tutorial! You deserve more views. Awesomeness!

  • @aurielklasovsky1435
    @aurielklasovsky1435 2 ปีที่แล้ว

    That was awesome. Thank you so much for this great tutorial!

  • @AlMagic911
    @AlMagic911 2 ปีที่แล้ว

    Great video, thanks!!

  • @juantato2012
    @juantato2012 3 ปีที่แล้ว

    This is by far the best tutorial I've ever followed. Thank you so much!

  • @ATIWatchReviews
    @ATIWatchReviews 3 ปีที่แล้ว +1

    Florin is definitely my new favourite instructor. Thank you

  • @RAHULROY-sb9nt
    @RAHULROY-sb9nt 3 ปีที่แล้ว

    I am from india..i had problem with foreign accents.but yours fine and clear.

  • @alanthomasgramont
    @alanthomasgramont 3 ปีที่แล้ว +1

    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

  • @nohaderwa
    @nohaderwa 2 ปีที่แล้ว

    Straight to the point 👏🏻👏🏻
    Keep the hard work, man.

  • @decall
    @decall 3 ปีที่แล้ว

    thank you Florin for the great tutorial, it was just what I needed..

  • @kto523
    @kto523 2 ปีที่แล้ว

    Thank you for this video!

  • @nicholascottle8531
    @nicholascottle8531 3 ปีที่แล้ว +1

    The perfect tutorial doesn't exi...

  • @kimjiyoung8655
    @kimjiyoung8655 2 ปีที่แล้ว

    Thank you so much Florin! :D

  • @ovidiublaga1
    @ovidiublaga1 4 ปีที่แล้ว +3

    Foarte misto!

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว +1

      Ma bucur ca iti place 😃

    • @ovidiublaga1
      @ovidiublaga1 4 ปีที่แล้ว +2

      @@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 TH-cam?

    • @ovidiublaga1
      @ovidiublaga1 4 ปีที่แล้ว

      @@FlorinPop de la videoul cu password generator în javascript

  • @The_Daily_Shorts
    @The_Daily_Shorts 4 ปีที่แล้ว +2

    Thanks for making this video. it's helpful!

  • @dominicamaljoef6693
    @dominicamaljoef6693 4 ปีที่แล้ว +1

    Thanks for this great video Florin...

  • @TheDream975
    @TheDream975 3 ปีที่แล้ว

    I like your code. Clear and understandable !👍👍

  • @mahdimotallebi7207
    @mahdimotallebi7207 3 ปีที่แล้ว

    Thank you Florin
    Great tutorial

  • @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!

  • @pearlstar1427
    @pearlstar1427 4 ปีที่แล้ว +21

    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 :)

  • @cynthiamanor6565
    @cynthiamanor6565 3 ปีที่แล้ว

    Great tutorial! Thanks for posting.

  • @digihz_data
    @digihz_data 2 ปีที่แล้ว

    Great presentation.

  • @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 :)

  • @faruquedewan
    @faruquedewan ปีที่แล้ว

    A lifesaver. Thanl You! :)

  • @pascalgage2695
    @pascalgage2695 4 ปีที่แล้ว

    A very nice work !!! Excellent ! Thanks ! I'm just using a text editor but it works !

  • @pranjalverma9171
    @pranjalverma9171 4 ปีที่แล้ว +6

    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 ปีที่แล้ว +1

      (e) = event , search up for more information in google , u can find alot information.

  • @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.

  • @robertoenriquechavezrodrig731
    @robertoenriquechavezrodrig731 2 ปีที่แล้ว

    Thank you so much, bro, this is a great tutorial. God bless you! Regards from Russia. 04.12.2021

  • @Happiness-z7l
    @Happiness-z7l 2 ปีที่แล้ว

    Amazing bro thanks so much from Iran❤

  • @libertad83y
    @libertad83y 4 ปีที่แล้ว +1

    Thank you Florin, invaluable tutorial, thumbs up!

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว

      👍🏻👍🏻👍🏻

  • @676005ga
    @676005ga 3 ปีที่แล้ว +6

    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 ปีที่แล้ว +1

      the form is only reloading but it is not submitting

  • @touhidh6
    @touhidh6 4 ปีที่แล้ว +7

    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

  • @dienhoangkhai6025
    @dienhoangkhai6025 3 ปีที่แล้ว +1

    Hey guy, Can you make video about Javascript , how to improve Javascript skills? Thank you

  • @John-wx3zn
    @John-wx3zn 2 ปีที่แล้ว

    Thank you. I learned a lot.

  • @Omar_Muhammad
    @Omar_Muhammad 2 ปีที่แล้ว

    Thanks, man
    very helpful and informative video.

  • @AdriiPing
    @AdriiPing 4 ปีที่แล้ว +2

    As always helping me a lot w/ ur vids :)

  • @zubaydullo_abdirakhmonov
    @zubaydullo_abdirakhmonov 3 ปีที่แล้ว

    Thanks for such a useful video, keep up the good work.

  • @Verakissyou17
    @Verakissyou17 7 หลายเดือนก่อน

    Hey! I have a question. In the custom functions why you use the username for ex. and not the usernameValue? Now I started to learn JS and I would like to understand it, not just copying the code you provided for us. It is very useful for beginners to know how to do it. Thanks a lot for this video!🤗🤗🤗

  • @turaleyyub5746
    @turaleyyub5746 3 ปีที่แล้ว +1

    But it doesnt go to another page(action="formControl.php")?..e.pereventDefault is in right place?

  • @quickfoods_qf
    @quickfoods_qf 3 ปีที่แล้ว

    This is organized and really very easy to understand, Thank you Florin

  • @ivanblazevic1045
    @ivanblazevic1045 4 ปีที่แล้ว +1

    Great tutorial! Very useful. Especially for me 'cause I just learning about Form Validation in PHP, so now I could compare. Thank You Florin!

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว

      Your welcome 🙏

  • @devsealkeen1156
    @devsealkeen1156 2 ปีที่แล้ว

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

  • @alfrugo
    @alfrugo 2 ปีที่แล้ว

    great job! thanks for sharing!

  • @syberiaok
    @syberiaok 4 ปีที่แล้ว +1

    Super great tutorial and very well and simply explained for a beginner like me!thanks a lot!!!!

    • @FlorinPop
      @FlorinPop  4 ปีที่แล้ว

      Thank you for watching 😃

  • @helgeope
    @helgeope 3 ปีที่แล้ว

    Very well explained!

  • @Shriram-ty2kk
    @Shriram-ty2kk 3 ปีที่แล้ว

    Clear as a crystal!

  • @rullyahsani4613
    @rullyahsani4613 2 ปีที่แล้ว

    awesome, thanks for tutorial

    • @FlorinPop
      @FlorinPop  2 ปีที่แล้ว

      You’re welcome

  • @sabuein
    @sabuein 3 ปีที่แล้ว

    Thank you, Florin.

  • @fernandocueto5652
    @fernandocueto5652 4 ปีที่แล้ว

    Thanks pal, you saved my day

  • @rakeshkharvi3029
    @rakeshkharvi3029 4 ปีที่แล้ว

    You just helped me a lot buddy ❤️

  • @swapnilcodes
    @swapnilcodes 3 ปีที่แล้ว

    Awesome tutorial...💥♥️

  • @pjguitar15
    @pjguitar15 3 ปีที่แล้ว +1

    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 🙏

  • @Onlineteaching10
    @Onlineteaching10 3 ปีที่แล้ว

    NICE INFORMATIVE .WELL DONE

  • @hamzajirah
    @hamzajirah 4 ปีที่แล้ว

    Good job, Florin.

  • @zarakikenpachi1799
    @zarakikenpachi1799 4 ปีที่แล้ว +2

    you are the best , thank you

  • @frombeyond3667
    @frombeyond3667 3 ปีที่แล้ว

    Thanks dude!

  • @mansoormohmand5852
    @mansoormohmand5852 4 ปีที่แล้ว +1

    easy and wonderful

  • @ozzyozborne4539
    @ozzyozborne4539 4 ปีที่แล้ว +1

    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?

  • @AmanAliJB
    @AmanAliJB 3 ปีที่แล้ว +2

    on submitting form nothing is happening ! please help

  • @dipzera1025
    @dipzera1025 4 ปีที่แล้ว +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