JavaScript Project | Create Product Search Engine/Bar/Filter in JavaScript

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • JavaScript Project | Create Product Search Engine/Bar/Filter in JavaScript.
    Source Code: www.buymeacoffee.com/tech2etc...
    FAQ's You Always Ask Me:
    ~~~~~~~~~~~~~~~~~
    What projects can I do with JavaScript?
    - You can do anything. Try my color changing on click project.
    What is a good JavaScript project?
    - No project is bad.
    How do I start a project in JavaScript?
    - Have Basic Knowledge in HTML CSS? If yes, then get started now
    Why JavaScript is used in projects?
    - JavaScript is full of mysteries. That's why everyone loves it and wants to include it in their project.
    What are some good JavaScript projects?
    - There are so many of them. Check my JavaScript Project Playlist
    What can I build with JavaScript?
    - Anything You Like.
    How can I do a JavaScript project?
    - Just follow my JavaScript Project playlist.
    Is JavaScript the hardest language to learn?
    - Not at all. But it will take some time to be comfortable with it. You won't regret it. Believe me.
    More JavaScript Projects:
    • JavaScript Projects Fo...
    #javascript #project #searchjs
    All Source Codes: www.buymeacoffee.com/tech2etc
    GitHub: github.com/tech2etc
    ⛔❌Do Not CLICK This Link: bit.ly/3lJLyLY
    Need any help? Join my Discord: / discord
    SUPPORT ME:
    👕 Merchandise: tech2etc.com/merchandise
    🎁 Buy Me A Coffee www.buymeacoffee.com/tech2etc
    🎀 Donate Me By Paypal: www.paypal.com/paypalme/tech2etc
    How To Make MONEY Online - My 4 Favorite Tricks:
    👨‍💻 Start Freelancing: tech2etc.com/fiverrcpa
    🛒 Learn Digital Marketing: tech2etc.com/digital-marketing
    📹 Make Video Editing As Profession: tech2etc.com/video-editing
    🕔 Next trick will be revealed at the right time.
    Free Course to Improve SKILLS & EARN:
    1️⃣ WordPress Insider: tech2etc.com/wordpress-course
    2️⃣ Bootstrap With Projects: tech2etc.com/bootstrap
    3️⃣ Web Development For Beginners: tech2etc.com/webdev
    4️⃣ JavaScript With Projects: tech2etc.com/javascript
    5️⃣ Python With Projects: tech2etc.com/python
    🎁 Get Certificate: courses.tech2etc.com/
    Important Links:
    📂 Best Hosting: tech2etc.com/best-hosting
    📂 Best CV Resume: tech2etc.com/my-resume
    📂 Freelancing Guide: tech2etc.com/learn-freelancing
    📂 Interview Questions: tech2etc.com/?s=interview
    DISCLAIMER: This description contains affiliate links. Which means I may receive a small commission on affiliate links used. This helps support the channel and allows us to continue to make videos like this. All content used within the parameters of fair use.
    ===============================
    Connect with me & get daily updates👇
    ===============================
    Discord: / discord
    Instagram: / fahimulkabir.tech2etc
    LinkedIn: / fahimulkabirchowdhury
    FB (Personal): / md.fahimkabirhamim
    FB Page: / tech2etc
    FB Group: / 2424642430907565
    Timestamps:
    0:00 Intro
    1:41 File Directory
    2:40 HTML For Search Bar Interface
    4:52 CSS For Styling Search Bar Interface
    9:55 Adding Products and Details
    11:35 Styling Product Image & Details
    14:34 Adding More Products
    15:08 Fixing More Products in CSS
    16:55 Make Search Bar working in JS
    17:33 Creating Function
    20:48 Matching Products Showing
    23:40 Removing Unmatched Products
    24:37 Quick Demonstration (Important)
    27:04 Lets See What we have made

Комментарии • 216

  • @Tech2etc
    @Tech2etc  2 года назад +12

    JavaScript Project | Create Product Search Engine/Bar/Filter in JavaScript.
    - Need Your Support Guys. Help Me To Reach 200K SUBSCRIBERS 🔥
    More JavaScript Projects:
    ruclips.net/p/PL9bD98LkBR7P16BndaNtP4x6Wf5Ib85Hm
    Timestamps:
    0:00 Intro
    1:41 File Directory
    2:40 HTML For Search Bar Interface
    4:52 CSS For Styling Search Bar Interface
    9:55 Adding Products and Details
    11:35 Styling Product Image & Details
    14:34 Adding More Products
    15:08 Fixing More Products in CSS
    16:55 Make Search Bar working in JS
    17:33 Creating Function
    20:48 Matching Products Showing
    23:40 Removing Unmatched Products
    24:37 Quick Demonstration (Important)
    27:04 Lets See What we have made
    Download Images: www.patreon.com/posts/58490866

    • @Chandraprakash-kx4ic
      @Chandraprakash-kx4ic Год назад

      Waiting for 100K SUBSCRIBERS 🔥

    • @SIDDHARTHwakade
      @SIDDHARTHwakade 9 месяцев назад

      Bro there is an issue we have to refresh page every time to search new product

    • @Sweet-ex8ln
      @Sweet-ex8ln 7 месяцев назад

      Js concept not understand in search engines

    • @Tech2etc
      @Tech2etc  7 месяцев назад

      @@Sweet-ex8ln Hey bro.. If you are trying to clear your js concepts by just watching one video.. Then wake up from your sleep. Programming is not for you. Find another passion or field. I have seen people who are sticking to js nearly over a year just to learn the basics. Im not here to demotivate you, just giving you reality check 👍

  • @jayshah5065
    @jayshah5065 Год назад +4

    Thank you for this!!!
    I tweaked the code according to my requirement and it worked just perfect!!! you are doing a great job !!

  • @techoutlook9235
    @techoutlook9235 Год назад +2

    This is fantastic. So many possible project ideas based on these functionalities thank you

  • @kohta.tulee.kaamos
    @kohta.tulee.kaamos 2 месяца назад +1

    A super project for beginners to sum up their basic knowledge. Thank you!

  • @tenc6491
    @tenc6491 2 года назад +19

    One of the best out there. I can't thank you enough for this immensely informative and easy-to-understand tutorial. Also, I appreciate the fact that you took the time to explain everything (again) before wrapping up your video. I've happily subscribed and now, I am going to watch all your videos to learn more Javascript. Thank you again mate!

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Im glad that you are enjoying this channel

    • @tenc6491
      @tenc6491 2 года назад

      @@Tech2etc I am indeed enjoying this channel. It's a great discovery.

    • @mocresan
      @mocresan Год назад

      ++++

    • @user-sf8ke6pr8l
      @user-sf8ke6pr8l 9 месяцев назад

      Pls any one give me the code in comment box

  • @only____4471
    @only____4471 Год назад +1

    thanks brother . i never see some one like you everything in your video are clear and easy coding thanks a gain bro👑👑

  • @jhonsnow9911
    @jhonsnow9911 Год назад

    thanks heaps mate this is something I wanted to implement on my own project and worked perfectly!

  • @bharatisingh6097
    @bharatisingh6097 7 месяцев назад +1

    Too good ....just done making this ...and without your help wouldn't be possible... thank you so much 🙏❣️

  • @somasekharkudamala1643
    @somasekharkudamala1643 Год назад

    Thank you, Proper explanation. Great work

  • @abumursad
    @abumursad Год назад +1

    I love Tech2etc's content very much...

  • @indianmuskofficial9278
    @indianmuskofficial9278 Год назад +3

    thanks for the overflow-y : scroll
    and offcourse the whole project its awesome

    • @Tech2etc
      @Tech2etc  Год назад

      More projects are coming soon.
      Please share this project on your social media. It will help us. Thanks.

  • @LogicTech-
    @LogicTech- 2 года назад +9

    You're a great teacher, you should have a coding Bootcamp

  • @unknownroaster5477
    @unknownroaster5477 13 дней назад

    Thanks a lot sir, it was really helpful and informative

  • @KOKEELSPORT
    @KOKEELSPORT Год назад

    Working properly ..thanks man.

  • @stever2507
    @stever2507 11 месяцев назад +1

    You explain coding JS very well. The best is that you say all that is needed and no more extra stuff said. thanks for sharing.

  • @majdnaomy4330
    @majdnaomy4330 Год назад

    TNice tutorials is absolutly the best video of the world you expaining skills are good and it was a honor to see tNice tutorials vid well done

  • @Araby-News
    @Araby-News Год назад +6

    Hello, thank you very much for this wonderful video, but I have a question, if you allow me, how can I hide the list of products where the results appear only when I search from the search bar, for the products I search for??

  • @csgameng1128
    @csgameng1128 Год назад +1

    wow great video, easy to follow and well explained

  • @shivrajprachande540
    @shivrajprachande540 2 месяца назад

    Thank you so much !!
    Keep Making such videos more 😍🥰

  • @fazliddinfayziyev8072
    @fazliddinfayziyev8072 2 года назад

    Hello bro.
    Thank you.
    I liked it. It is the best project I have ever seen. ✊.
    I wish you all the best.
    Thank you bro.

  • @huynhthanhtuaptechhcm3327
    @huynhthanhtuaptechhcm3327 2 года назад +1

    Your demonstration is perfect 👌

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Thank you so much

  • @alifaditya7787
    @alifaditya7787 Год назад

    thankyou sir, your vid really helped me, it worked on my case

  • @somebody1222
    @somebody1222 4 месяца назад

    Great Work!

  • @outhide4715
    @outhide4715 Год назад

    God bless you bro, keep up the good work

  • @maliksalah6830
    @maliksalah6830 Год назад

    This was awesome!!! Thansk!!!!

  • @petersabraham7423
    @petersabraham7423 Год назад

    Nicely done. Thank you. Keep up with the good work

    • @Tech2etc
      @Tech2etc  Год назад

      Your most welcome. Please share this project on your social media. Will appreciate that.

  • @trapx6349
    @trapx6349 4 месяца назад

    Broooo, thankyou so much❤

  • @shivprasadkavathe5098
    @shivprasadkavathe5098 Год назад

    Ohh thank buddy ,I was looking for a same type of video since so long.

    • @Tech2etc
      @Tech2etc  Год назад

      Your most welcome. Please share this project on your social media. Will appreciate that.

  • @semicolon6499
    @semicolon6499 2 года назад +2

    thanks a lot sir i finding this method and we get and i emplemet this work fine love you...

  • @difr2235
    @difr2235 2 года назад +1

    Thank you, you helped me so much! I tried to find how to do that for a long time, i did the same thing with all the pages in my website😃

  • @gayatridodiyagayatridodiya7469
    @gayatridodiyagayatridodiya7469 2 года назад

    Thank you sir And sir your way of explaining is great and This video is very useful for those who want a working search bar.

    • @Tech2etc
      @Tech2etc  2 года назад

      Your Most welcome

  • @syedimran5729
    @syedimran5729 11 месяцев назад

    Thank you sooo much bro ❤

  • @nurudeenmohammedhuloty6554
    @nurudeenmohammedhuloty6554 Год назад +2

    Please mine is still not working. Where I replaced document with storeitems const pname is saying HTMLElement | null

  • @Anonymous-jx4zp
    @Anonymous-jx4zp 2 года назад +1

    i like the way you explain

  • @val_en_tine
    @val_en_tine 4 месяца назад

    Thank you so much 🥹

  • @sajjadlatafaty2547
    @sajjadlatafaty2547 2 года назад

    very perfect....Create JavaScript projects again, I enjoyed it, thank you

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Most welcome

    • @Tech2etc
      @Tech2etc  2 года назад +1

      Please check JavaScript projects playlist for more projects like this.

  • @delightstv5273
    @delightstv5273 Год назад +3

    tried it..it didnt work...checked for errors no errors..and yet not working

  • @rommelramos5573
    @rommelramos5573 2 года назад +1

    How it apply in e commerce? I want to create an search bar in the nav bar but the pictures is hidden.

  • @rohan67.
    @rohan67. Год назад

    superb explination

  • @mmclw
    @mmclw 2 года назад

    TYYYYYYYYYYY SOOOOOOOOO MUCH
    It worked and it was also kinda easy to understand

  • @JNS_NLS
    @JNS_NLS Месяц назад

    Hey bro, I tried this out and everything worked except for the objects moving upwards to the search bar itself after searching for them. They usually have a weird margin (i think thats the problem) but I cant find the trigger to my problem. Do you know how to solve this problem?

  • @mangadymasty
    @mangadymasty 3 месяца назад

    thanks broo

  • @arin1972
    @arin1972 Год назад

    good! very good expanation

  • @shoriful732
    @shoriful732 11 месяцев назад +2

    Can you make it so the box and the products only appears when I click on the search box

  • @abumursad
    @abumursad Год назад +1

    Bro...
    JavaScript ki playlist upload kijea...
    Your teaching method is awesome...

  • @anisslharchichi604
    @anisslharchichi604 Год назад

    This helped so much thank you.

    • @Tech2etc
      @Tech2etc  Год назад

      More projects are coming soon.
      Please share this project on your social media. It will help us. Thanks.

  • @amithbiswas3693
    @amithbiswas3693 Год назад

    Thanks 🎉

  • @harpit5905
    @harpit5905 Год назад

    Good voice. Relevant.

  • @slimfit9605
    @slimfit9605 Год назад

    hi, how can i do this with select box buttons? example: "first select box: city , second select box: district, third select box: categories"

  • @21-himanshujadav83
    @21-himanshujadav83 11 месяцев назад

    how do i initially hide all the products and let them show when some text is written in search bar?

  • @edwinklost3886
    @edwinklost3886 Год назад

    This is nice🔥🔥🍻🍻I'm Glade I came to this video 🔥🔥🔥very nice n clean code

    • @Tech2etc
      @Tech2etc  Год назад

      You're very welcome!
      More projects are coming soon.
      Please share this project on your social media. It will help us. Thanks.

  • @Meshack_Locho
    @Meshack_Locho 4 месяца назад

    Hey mahn, this is amazing thank you so much

    • @Tech2etc
      @Tech2etc  4 месяца назад

      Your most welcome 😇

  • @sandipgiri5295
    @sandipgiri5295 8 месяцев назад

    Really appreciate ❤

  • @yousefmiri7045
    @yousefmiri7045 Год назад

    Thanks , It's work

  • @leehom2442
    @leehom2442 6 месяцев назад

    Will it bring you to another page after you click the selection?

  • @umardarazofficials3529
    @umardarazofficials3529 Год назад +7

    It's not working?

  • @Motivationalgoal999
    @Motivationalgoal999 6 месяцев назад

    Yes its working

  • @studywithroman1997
    @studywithroman1997 Год назад

    thank you boss

  • @kaungkinzone2448
    @kaungkinzone2448 9 месяцев назад

    Thanks❤

  • @aligh9983
    @aligh9983 4 месяца назад

    it was really useful for and i learn a lot spcially css and html and i would to learn javascript with if it is possible

  • @cheahchunwei6181
    @cheahchunwei6181 2 года назад

    Thank you, perfect video! But what script should I put if also want to search h3 value?

  • @adamirulislam612
    @adamirulislam612 Год назад +1

    I don't know what's wrong wit me. I can't fix my problem. my code isn't running.

  • @deepak8586
    @deepak8586 2 года назад

    Amazing!!

  • @aftabsaleem2670
    @aftabsaleem2670 Год назад +5

    search box not working

  • @wolf-splay4956
    @wolf-splay4956 Год назад

    Bro I love You 😍

  • @nurudeenmohammedhuloty6554
    @nurudeenmohammedhuloty6554 Год назад +1

    Thanks for this video, but mine doesn’t work even I copied the code exactly. Const storeitems: HTMLElement | null. This is what I get at the declaration of the pname.

  • @mark7322
    @mark7322 10 месяцев назад

    hi~
    What about adding more search items instead of only one item?

  • @abdulraheem-522
    @abdulraheem-522 6 месяцев назад

    is there any way i can hide the products but when someone clicks the search bar then products come?
    please any one tell me

  • @SatyamX635
    @SatyamX635 Год назад

    Great

  • @Anonymous-mj4zw
    @Anonymous-mj4zw 6 месяцев назад

    Does it work without hosting website

  • @meghanandwakpanjar2011
    @meghanandwakpanjar2011 Год назад

    yes its working

  • @romafolsa1678
    @romafolsa1678 2 года назад

    excellent but let me ask you one question what is the d/ce between software enginner and computer science

    • @Tech2etc
      @Tech2etc  2 года назад

      "Software engineering is the application of engineering principles to computer hardware and software, usually to solve real-world problems. Computer science is the application of the scientific method to computer software. CS is broader and more abstract and is used for theoretical applications than practical ones" - careerkarma.
      Please search this question in google. You will get a lot of helpful articles regarding this topic.

  • @DM-fr3ve
    @DM-fr3ve 2 года назад +1

    Hello! Thanks for the video! I am having some trouble getting it to work. Can I show you my code somehow please? I validated the HTML, CSS and JS with online validators and I have no errors. Thanks in advance!

  • @Maywebmst
    @Maywebmst 4 месяца назад

    pls can you make a video of calculating total price in cart item using javascript

  • @thesiddiqui7
    @thesiddiqui7 Год назад +3

    sir mere me ye work Kyun nhi kr rha
    na koi error show kr rha hai console me jab ki script show kr rha
    plz help me!!

  • @DoLittleWithPalash
    @DoLittleWithPalash Год назад

    a great tutorial

  • @ananya2942
    @ananya2942 10 месяцев назад

    Thank you sir I'm having problem in my music player search bar

  • @codingwithankit7619
    @codingwithankit7619 Год назад +2

    Search Box is not working.

  • @jargonlab4226
    @jargonlab4226 2 года назад

    Subscribed

  • @ManuelBarca4
    @ManuelBarca4 Год назад

    Hey, nice video, it help me a lot.
    One question, if i want to hide the products until the user become to type the name of them, and that moment they start to appear, how can i do it?

    • @ManuelBarca4
      @ManuelBarca4 Год назад

      I resolve to do:
      Create a new variable inside search() that is:
      const is-visible = document.getElementById("product-list")
      And then, inside the second if, i added to the product[i].style.display = "";:
      is-visible.classList.remove('overflow-hidden');
      is-visible.classList.add('overflow-visible');
      Because i use bootstrap 5, but i have an issue.
      When i delete the letters in the search box, the products doesnt disapear, they all stuck in the screen.
      Any suggestions?

  • @abumursad
    @abumursad Год назад

    Kindly go for JavaScript dedicated playlist....

  • @gwolojulius4135
    @gwolojulius4135 3 месяца назад

    Great job! but you declared a variable 'storeitems' and it was not used anywhere.

  • @A3_Paradox
    @A3_Paradox 11 месяцев назад

    Maa Sha Allah vaiia, Aapni ki Bangladeshi?

  • @gamecast4432
    @gamecast4432 Год назад +2

    Dude, there's a much easier way.
    const searchSentence = value.trim().toLowerCase()
    const result = products.filter(val => val.productName.toLowerCase().includes(searchSentence)

    • @stever2507
      @stever2507 11 месяцев назад

      where do you put these 2 lines, what do they do, and what do they replace?

  • @julio5434
    @julio5434 2 года назад +1

    💗💗💗

  • @vikrambam1184
    @vikrambam1184 2 года назад +1

    what is the use of [0] . you write in line no. 8

    • @tenc6491
      @tenc6491 2 года назад +2

      indexOf() returns the position of a specified value in an array.
      To create For Loop, declaring var i=0 or var x=0 is a must.
      var i=0 was used here to set a variable before the loop starts.
      let match = product[i].getElementsByTagName("h2")[0]; ----This was your question----
      i here means i number of products (its an assumption)
      [0] here means he is trying to access the first element of the product and in javascript, 0th product means 1st product.
      example from W3Schools:
      const fruits = ["Banana", "Orange", "Apple", "Mango"];
      Question: Find the index of Banana.
      Answer:
      let index = fruits.indexOf("Banana");
      console.log(index);
      It will log 0 because Banana sits in the 1st position in this array, which is considered as the 0th position in javascript!
      Counts in JavaScript starts from 0 1 2 3 4 5 etc.
      Banana 0
      Orange 1
      Apple 2
      Mango 3

  • @iswaryak606
    @iswaryak606 Год назад

    🙏👍

  • @vidyaabhimaan
    @vidyaabhimaan 2 года назад +7

    Tried checking the code word for word, doesn't work.

    • @Tech2etc
      @Tech2etc  2 года назад

      Let me know the issue you are facing. Will try to help.

    • @majemiteeguonor
      @majemiteeguonor 2 года назад

      Am facing the same problem

    • @DeviDevi-yr2sv
      @DeviDevi-yr2sv 2 года назад

      @@Tech2etc same issue I am also facing

    • @jargonlab4226
      @jargonlab4226 2 года назад

      same here

    • @delightstv5273
      @delightstv5273 Год назад +1

      @@Tech2etc same issue sirr.. am not getting any error still not working

  • @karimbaghdadi1346
    @karimbaghdadi1346 2 года назад +1

    Good tutorial ! But the search box isn't working , do you have any idea ? all the code is written in the right way

  • @vinayakkatiyar9073
    @vinayakkatiyar9073 Год назад +1

    Its not working

  • @ABHISHEKKUMAR-wt1pw
    @ABHISHEKKUMAR-wt1pw 2 года назад

    Sir plz make more video on javascript

    • @Tech2etc
      @Tech2etc  2 года назад

      Sure bro, i will

  • @deepak625
    @deepak625 2 года назад +1

    Python videos pls 😅😅

  • @adnankhanmashwani1151
    @adnankhanmashwani1151 Год назад

    sir please my project dose not work please help me

  • @Movies-rl3ti
    @Movies-rl3ti Год назад

    everyone can search with keyword " how to search/ filter list W3School". This code is similar.

  • @BlackMetalPromo666
    @BlackMetalPromo666 Год назад +1

    emcommerce.js:3 Uncaught TypeError: document.getElementsById is not a function
    at search (emcommerce.js:3:33)
    at HTMLInputElement.onkeyup what to do?

  • @my_codingchannel7479
    @my_codingchannel7479 11 месяцев назад

    now an input interface would complete this project, it could be adapted to other applications

  • @francuskisir7180
    @francuskisir7180 8 месяцев назад

    Can i make with this search engine for buttons

  • @CGN_PROPERTIES
    @CGN_PROPERTIES Год назад

    hi bro how to add images into image file with what extension

    • @premobratabiswas1657
      @premobratabiswas1657 Год назад

      exactly bro, I have this same problem, when I'm inserting my own images, it is not working, as his

  • @charu-ow1tw
    @charu-ow1tw Год назад

    My first element only play please help

  • @genztechman
    @genztechman Год назад +5

    no error but it does not work

    • @Tech2etc
      @Tech2etc  Год назад

      please check the code again.