Create a Simple Popup Modal

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

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

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

    Learn to make a mobile responsive menu - th-cam.com/video/VMxP9PMSOYM/w-d-xo.html

  • @tigredejadeec
    @tigredejadeec 2 ปีที่แล้ว +12

    Not every programmer knows how to teach, so when I come across someone who does it really good like you do, I have to let them know! Thank you very much

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

    Dude...the way you "speak" of the elements to be "alive" and talking to each other makes this even better to understand than any other tutorial i've ever seen. The parent talks to the child...works for m!

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

      Thanks man, Yeah I think teachers can get too far removed from the student, you need to have empathy and understanding of your student. thanks mate.

  • @TraversyMedia
    @TraversyMedia 6 ปีที่แล้ว +151

    Great job Richard, very helpful

    • @RichardCodes
      @RichardCodes  6 ปีที่แล้ว +13

      Traversy Media thanks brad. You’re an inspiration.

    • @poonamjagtap8392
      @poonamjagtap8392 5 ปีที่แล้ว

      O

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

      @richardcodes and @traversy good job for helping me out

    • @cinquain0
      @cinquain0 5 ปีที่แล้ว +2

      from the master himself

    • @bk._550
      @bk._550 4 ปีที่แล้ว

      Traversy Media thanks brad. You’re an inspiration.

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

    Brilliant Richard..
    It's been several months that I have watched any video at normal speed.
    Especially liked how you explained the code rather than just writing it..
    Thank you.

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

    It’s amazing the fact you actually tell us what the code does makes us actually understand it

  • @joelyoungberg1154
    @joelyoungberg1154 5 ปีที่แล้ว +2

    Great Tutorial! Very nicely done and clear - Note: for the JQuery users out there the button code would look something like this (depending on your class and id names) :
    $(document).ready(function(){
    // Change modal background from none to flex to show it
    $('#modal-button').click(function(){
    $('.bg-modal').css('display', 'flex');
    });
    // Change modal backround to none to hide it when x gets clicked
    $('.modal-close').click(function(){
    $('.bg-modal').css('display', 'none');
    });
    });

  • @Darkest-Kn1ght
    @Darkest-Kn1ght 11 หลายเดือนก่อน +1

    Richard, thank you so much, I'm JUST getting into javascript and so far it's been a tremendous struggle! I've been through a dozen tutorials on youtube and wasn't able to get this to work. I managed to get your tutorial working after figuring out where to put the link to the javascript file. I've seen some links in the head of the html file and some at the bottom of the html body, so never knew exactly where to put it. It works at the bottom of the body tags in the html though!! Thank you so much!!!

    • @RichardCodes
      @RichardCodes  11 หลายเดือนก่อน +1

      Glad to help. The rule is to put at the bottom.
      This is because the page loads top to bottom. So if the html element you want to manipulate with JavaScript hasn’t loaded yet it won’t work.
      This would be the case if JavaScript came before html.

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

    Finally, instructions for a simple modal clear and to the point. Thanks great tutorial.

  • @antwarior
    @antwarior 5 ปีที่แล้ว

    bro i swear in just a few words, youve taught me javascript out of all the tutorials i watched, this was the most explanatory one, never new document meant look on page and the way you explained it i fell now i can go code anything i want

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

      Thanks for the kind words, glad I could help mate. Javascript is a real mother. Still it kicks my ass every day. Just keep going mate.

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

    What a fantastic lil' video! One of the best I've watched on coding in a long time, maybe ever. Thanks!

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

    Love the wonderful popup contact form. Help me out a lot. Thank you RichardCodes!

  • @vietnguyenc6612
    @vietnguyenc6612 5 ปีที่แล้ว

    omg, I have to say the best coding-teaching video ever. Please keep doing this, I need more, Thank you very much

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

    Best Tutorial and the best teacher.

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

    I soo much loved this video... watched lots of popup videos on TH-cam on how to create popups but I couldn't understand them... but when I watched this I got it thanks men✊

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

    WoW! This is apt. You are a great teacher. Thanks a million Richard.

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

    I will recommend you to use position : fixed in place of position: absolute; with z-index: 2;
    Example-
    .bg-modal {
    Position: fixed;
    Z-index: 2;
    }

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

      bro any suggestion I can open my modal only in one button other buttons with the same id will not trigger the modal. thanks!

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

      @@devbytoast I'm stuck there too. Did you find the solution by any chance?

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

    You should come back to making tutorials! You’re great at them!

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

      your wish is my command, I'm back

  • @rahulkumar-yk2ru
    @rahulkumar-yk2ru หลายเดือนก่อน

    Still watching your videos after 6 years, can't able to find a better lecture than this. A request to you pls make a video on how to make multiple items scrolling horizontally using javascript. 😍. Thanks man

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

    you are just awsome man.Thank you so much,today i got a clear vision of what happens when you have more than one position="relative" ,stuff on board.Now i'm clear that position="absolute" chooses the nearest parent with relative position tag.Thank you again.Lots of love from INDIA

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

    Where are you man? Come back! You're awesome.

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

    so much love man..!! You made my day.!!! :)

  • @gulnazsharipova3966
    @gulnazsharipova3966 5 ปีที่แล้ว +2

    Thank you so much Richard! it was my first javascript. I have seen tons of analogous video here in Russia but no one was as simple and understandable as yours. Though I had some issues, it seems you haven't explained styles for 'button'. But it was minor remark, solved quickly. Overall very helpful video. Thanks again.

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

    You are a very good teacher, you explain things clearly ! Thank you for this :)

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

    This video pumped my project a lot! It was the base for all the popups that i'll need! Thanks a lot my dear sir!

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

    omg!! wt an explanation dear.I became ur fan. Add more n more videos.

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

    Thank you so much!! I've been looking for a video like yours! And the way you desrcibed JavaScript was splendid and was easily understandable, thank you thank you!!

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

    It helped me a lot. I subscribed to your channel the moment you showed that modal

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

    You sir are an amazing teacher!! First time I watched a video of yours, and I really like your teaching style of explaining how all the moving parts work togther to create the finished result. I really needed to hear this at a time when I also need to create a pop up contact form on a client's website, I am working, and this video will be of incredible help to me when I start coding it tommrow. Thank you Richard.

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

      Awesome. Thanks for watching. Good luck man.

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

    Great work buddy
    Your video is truly clear my dot when I work on it.

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

    5 minutes in just wanna say you are an AMAZING teacher thank you so much

  • @hiryuimajin
    @hiryuimajin 5 ปีที่แล้ว

    I just didn't learn about making this awesome modal popup but I also got a lot from the css part of this tutorial. Thank you very much!

  • @nitria2549
    @nitria2549 5 ปีที่แล้ว

    the margin between the input tags not working for me couldnt find out why so i used the tag

  • @KLXZ_
    @KLXZ_ 5 ปีที่แล้ว

    I watch plenty of those videos since i'm learning and i find better half of them hot garbage since people don't explain stuff well, they just do it. You did a great job explaining simple things that might be not that simple for someone who is learning and might not know all of even the most basic things. Great job man. Like and sub, keep up the great work!

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

    you are really an amazing teacher......you just saved my little ass. Thanx to you sir

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

    so useful!!!! U really know how to teach clearly. Thank u mr.

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

    nice one Richard, am practising doing it

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

    Nice, simple, quick, and instant subscribe.

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

      Thanks. A few simple videos coming up, very basic then will start to turn it up a bit. Glad you’re here.

  • @trendandviralnews
    @trendandviralnews 5 ปีที่แล้ว +2

    You are my new hero!
    Well done, an easy video, very helpful, understood by me, a simple newbie italian! ;)
    P.S.: you have a new follower! Keep it up

  • @sasayaki
    @sasayaki 6 ปีที่แล้ว

    This helped me out on a project I just turned in for an online course. You explained it really well. Thanks so much!

  • @evelienkulikova8825
    @evelienkulikova8825 5 ปีที่แล้ว

    That's a very clear and handy bunch of instructions. Thanks for helping me out! :)

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

    im trying to create a booking form that gets displayed when the user log in what should i add

  • @newgenerationxpro3379
    @newgenerationxpro3379 5 ปีที่แล้ว +8

    this really helped me with my site that I am working on just for practice, thank you :)

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

    Great tutorial

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

      Thanks man, don't forget to subscribe, im making some very basic videos this month, but then will step up so there maybe things you're interested in.

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

    Good explanation method and very patient attitude !!!

  • @kundansinghpanwar1113
    @kundansinghpanwar1113 5 ปีที่แล้ว

    awesome explanation create more please... very very helpful

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

    Thank you so much Richard! it was my first javascript👍🙏

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

    thanks bro....the way u teach is awesome. You are an insipiration!!!

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

    Omg, this is one of the most well explained tutorial ! Thanks!!

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

    great job mam, keep goimg 👏👏👏

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

    Best tutorial I have come across in life

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

      Thanks man, I massively appreciate the kind words

  • @AlejanPa
    @AlejanPa 5 ปีที่แล้ว

    Thank you so much; you are millions times better than my teacher

    • @RichardCodes
      @RichardCodes  5 ปีที่แล้ว

      Aww, cheers mate, it's more about talking at the right level I think. Some teachers can be absolute geniuses but can't get that across

    • @AlejanPa
      @AlejanPa 5 ปีที่แล้ว

      @@RichardCodes well the problem is that she doesn't explain how the ccs parameters affect graphically

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

    I have a problem... when I try to do the first JavaScript function, it just opens the login bg-modal for an instant, an then it hides again.
    any solution? :c

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

      The same thing happened to me, did you surround your submit button within a form? Because when I took it out of the form and took out the submit type for the button it worked. It must be something to do with the HTML request associated with the button refreshing the page I assume.

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

      I had the same issue. I had a link with href=" ". Writing a "#" instead of " " did the trick.

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

    If you read your comments still @RichardCodes I come to this video so much, its so incredibly helpful beyond just Modals

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

      I do. Thank you Jeff. I’m glad to hear it helps you

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

    very cool - really like that you explained the css as well as you did. thumbs up on this tut.

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

    Thanks Richard, this is what I have been looking for...this is great.. God bless you

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

    Thanks a lot for your video. Your lesson helped me to create modal popup window! Have a good day!

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

    you are a great teacher, thank you for this tutorial. Liked and subscribed my friend!

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

    Thank you! The way you explain things is very very helpful.

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

    Thank you so much Richard!! This helped a lot!! However I am confused(I am a beginner at JS) how did you run the js file with no includes? everything works except for that

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

      I know this reply may be a little late but it may help someone else
      add this before the body tag so that javascript can be able to affect all the elements

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

      @@redahammada8605 thanks a ton!!! 🙏🏾🙏🏾

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

    too helpful, very precise and explanations couldn't have been better.

  • @angadbhambra6914
    @angadbhambra6914 5 ปีที่แล้ว

    Very helpful and easy to understand
    thanx Richard for making it look so easy.

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

    Awesome stuff . I am going to implement this in Angular on my youtube channel

  • @lfcorullon
    @lfcorullon 5 ปีที่แล้ว +2

    Awesome, Richard. That's exactly what I am looking for! Thank you so much for sharing!

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

    Very helpful. I was also able to understand the purpose of some properties which I did not know exactly why I was using them.

  • @uthaimeenuthman6537
    @uthaimeenuthman6537 9 หลายเดือนก่อน

    You're a really good teacher

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

    You are an excellent teacher!!

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

    Very good at verbalizing what you are doing. So helpful thanks

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

    Perfect video Richard. Just what I needed for a website I am currently working on. Thanks

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

    Woah thank you!! You are an awesome teacher! So easy to understand this tutorial!

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

    Thank you so much for this tutorial! It's super and easy to understand!

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

      Thanks for watching, what are you working on now?

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

      @@RichardCodes I'm working on a project in which you can click the thumbnail and a bigger version of the image pops up onto the screen

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

      @@siannazewdie7760 ah yes, I've done that in the past. Good idea for a video actually

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

    Nice one Richard nice job I really like this! P.S best person ever!

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

      Aww mate, thanks so much for the compliment. means a lot

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

      @@RichardCodes Your welcome

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

      Anyway you got a sub

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

    very clearlty understand. i recommend you to my friends too boss. good luck

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

    This is way easy than I expected. Thanks

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

    I've got a one question. For example, imagine a human, who is disabled (have a bad sight or cannot use mouse) and they are using a key board. When button "click me" will be focused and enter will be clicked, our pop-up will be shown. So the question is, how will those people interact with our pop-up, if other buttons also will be available? Is there any ways to make other interactive elements unavailable when pop-up is shown?

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

    I am looking for this in all the blogs and stack overflow ,you gives a clear and simple explanation 🤩 do more tutorials

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

      Similar tutorials will be here soon

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

    beautifully explained. easy to follow along

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

    Really nice job, for beginners like me it was the perfect balance of speed and information!

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

    Is there any function to make a fancy popup transition through JS?

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

    You're a great teacher, following every step is very easy, thank you very much

  • @mosesmoses8751
    @mosesmoses8751 10 หลายเดือนก่อน

    I love the explanations so simplified thank you

  • @kenng3348
    @kenng3348 5 ปีที่แล้ว

    Never thought about the way we can make the "X" button. Great job!

    • @serpent77
      @serpent77 5 ปีที่แล้ว

      You can also use the html character × so you don't have to mess with the css transform.

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

    Very nice, love the way you explain how each element works, very useful for beginners!

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

    Thank you! This was helpfull, Your teaching style is perfect, i love it.

  • @dinfarfar1020
    @dinfarfar1020 6 ปีที่แล้ว

    What a legend you are, you are like a english Jimmie Åkesson!

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

      Haha thank you man, i just googled him!

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

    Nice one.
    Please make more videos on html , css , javascript

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

    thanks man!!! you made it so simple to understand.

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

    It was very helpful especially the in depth explanation

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

    Hey I really enjoyed your video. Any idea how I could validate the required text before setting display to none?

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

      search html5 input validation, thats a quick and easy way, if not there are some libraries to help

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

    Thanks for this quick tutorial 👍🏼

  • @sissiwatson
    @sissiwatson 5 ปีที่แล้ว +2

    omg! you explain so well!!! Thanks for your tutorial I needed it!

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

    This tutorial is Great! However, I am having a problem aligning the text inputs and the image

  • @ava_the_curious_cat8276
    @ava_the_curious_cat8276 5 ปีที่แล้ว

    Keep posting videos! This was excellent and easy to follow! Thank you so much!

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

    I did everything as he said but the closing + wont work

  • @chandrus03
    @chandrus03 5 ปีที่แล้ว

    I understood about the block element now... Thanks!

  • @prashanthyadav430
    @prashanthyadav430 5 ปีที่แล้ว

    Excellent work

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

    Thanks a lot for your help!
    It helped me with a project and it worked perfectly.
    Thanks a lot, again.

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

      Pleasure. I have more similar videos coming so remember to subscribe.

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

    Awesome tutorial with easy to understand explanations

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

    This was soooo helpful. Thanks man

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

      Glad it helped. Thanks for watching

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

    very helpful, im gonna credit u in my project