How To Make Autocomplete Search Box For Website Using HTML CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025
  • Learn How To Create autocomplete search bar using JavaScript, Make auto complete search box for website using HTML CSS JavaScript
    #JavaScript #JavaScriptProject
    ❤️ SUBSCRIBE: goo.gl/tTFmPb
    In this video we will learn to make a search box or search bar for website, in this search bar we will add feature to auto complete the search query. When user will type anything in the search bar then it will display some similar search queries just below the search input box. User can click on the suggested search query to add it in the search bar. We will make this auto complete search-bar using HTML CSS and JavaScript. This is the best JavaScript project for beginners that you can add in your resume or portfolio.
    -----------------------------------------
    Suggested Course:
    ❤️ Complete website Using HTML and CSS
    ✔️ 8 Complete website step by step
    ✔️ Source Code Download
    ✔️ 76 Lectures, 12 Hours Video
    ✔️ Course Completion certificate
    👉 easytutorialsp...
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make a Business website step by step:
    ► • How To Make Website Us...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make fitness website design using HTML CSS:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make a Job Portal website design with HTML & CSS:
    ► • How To Make Website Us...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    ◼️ Source code link is shared in community post for all my coding videos exclusively for channel members (only channel members can see)
    Join Channel Membership:
    ► / @greatstackdev
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iama...

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

  • @miansohaibraheem
    @miansohaibraheem 10 месяцев назад +3

    Perfect. You did a great job. Love and respect for your hard work

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

    Thanks bro I have leant many things from you.thaks for the creativity.I am Fahad

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

    Thank you very much. Your video was very very helpful. It worked !!!!
    Sending lots of love ❤️

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

    Loved the video. Learn a lot. Thanks!

  • @yussifhamza1043
    @yussifhamza1043 5 месяцев назад

    thank you very much i was able to defend my project today

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

    Thanks Brother it was beautiful 🥰🥰🥰 love you

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

      Glad you liked it. Thanks for your comment. 😊

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

    Thank you.This video is very helpful.

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

    Thank you very much. your vedio and explanation were amazing. learned alot and it is working fantastically.

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

    Please do complete JavaScript tutorial. Thanks to you I feel great about my HTML and CSS. I will learn a lot from you if you have JavaScript tutorial.

  • @user-qt3zg8ww3d
    @user-qt3zg8ww3d 11 месяцев назад

    I like this!!! Amazing guy! thanks forever!

  • @venkatsai563
    @venkatsai563 9 месяцев назад +1

    it was very helpful bro thank alot

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

    Just great content!! thanks alot!

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

    U r cool man I like your videos

  • @kaungzanhein-z7x
    @kaungzanhein-z7x 4 месяца назад

    Thank you so much bro it's very helpful.

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

    Easy Tutorials actually teach the easy way.

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

    thanks bro you are doing great job

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

    my goodness javascript is to difficult and crazy to learn but i dont give up

  • @PraptiSharma-wx6fh
    @PraptiSharma-wx6fh Год назад +1

    Very nice box sir..

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

    Awesome, Thanks😃😃

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

    wow really beautiful thank you sir for this.

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

    😍Excellent

  • @R.KFilmsProduction
    @R.KFilmsProduction 28 дней назад +1

    Thanks 🎉

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

    Thank you sir excelent tutorial

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

    Instead of having to manually list all the keywords at 12:00, is there a way to simply refer to a list of HTML pages in the root directory?

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

      Onkeyup is not working plz help me

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

      @@peyyalakavya1733 make you you have the id name right and if that doesnt work try writing it as
      document.getElementbyId("input-box") = function ( ) { }

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

      create a .txt file with all your informations and read the file to create your possibleKeyWords
      if there is something better you found tell me cause i am doing it this way

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

    very helpful video thanks

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

    thank you bro.... you are awesome

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

    nice tutorial thank you soo much

  • @hammeedabdo.82
    @hammeedabdo.82 Год назад +4

    Can you do a video on how to make an accordion that has the following properties:
    1- The possibility of dragging and dropping between rows or accurately between accordions.
    2- The possibility of entering or adding a new accordion.
    3- Open the accordion through one click, but if you double click on any accordion, all accordions will open.

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

    excellent video

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

    How do you make it so then if you click outside of the list, the search box disappears? Or when you click the text, it completes a search?

    • @SonuKumar-hz2ff
      @SonuKumar-hz2ff 11 месяцев назад +1

      do you found solution to this problem

  • @3vibs
    @3vibs Год назад

    Fantastic bro

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

    thank you for super helpful video, can you tell the visual studio code's theme you using, it is very nice!

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

    really well made video

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

    Awesome tutorial! Very easy to follow

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

    Just a question can we do the same using eventlistener? for keydown or keyup ?

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

      Yes - I did this and it works:
      inputBox.addEventListener("keyup", () => {}

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

    I subscriber of your channel please create video on tender website please.. Thank you

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

      thank you! I i will consider that in my future tutorials

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

    Thank you

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

    Can you do a video showing Python Programming the following:
    1.) Log-In- Sign-UP (PYTHON & DATABASE)
    2.) Interactive Design
    3.) And some examples of a website

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

    thank you sir

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

    Hi dear,
    I like your tutorials & channel.
    Please provide React js project would be better.
    I hope you accept my request. ❤

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

    in my computer, function selectInput not exist when I click a li. why is not working?

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

    hi thank you for the video! may i ask what vscode theme you are using here?

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

    how to add links in available keywords

  • @Anonymous55212
    @Anonymous55212 Год назад +9

    i faced error in javascript file "onkeyup" function

    • @andreaspinheiro
      @andreaspinheiro 8 месяцев назад +4

      cuz in JS is not "onkeyup", instead try: "keyup"
      its "onkeyup" if you are using a event handler in html, like:

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

      ​@@andreaspinheiro
      Hello! Can you enter the full code for the input box? I can't do it , i feel like i did something wrong with the code. Thank you!!

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

      Use event listener

  • @freecs.2518
    @freecs.2518 Год назад

    Bro please make valentines card

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

    Thank you for the tutorial but can you help me why the hover doesn't work for me?

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

    You are amazing! Thanks for always teaching us something new... Can you make a mobile menu like Versace?

  • @factpulse-q7b
    @factpulse-q7b Год назад +1

    Now that I can search for items
    How do I click on the item searched for and it take me to another page

    • @SonuKumar-hz2ff
      @SonuKumar-hz2ff 11 месяцев назад +1

      do you found solution to this problem

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

    How do you redirect to a web page/url when you click on some search result ?

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

    How can I show "suggestions" in advance which are shown to user when user only clicks the search box as in the case of google search box. I request a guided video on this.

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

    code didnt work "Uncaught TypeError: Cannot set properties of null (setting 'onkeyup')"

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

    When i typed something like How, no keywords list showed and it didn't work for me. i followed all your steps

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

    How can I modify the code for me to get results in the website.
    What I mean is, when I type ' hmtl' and then press enter key, there is no any other action, it's just stops there and nothing else.
    Make a video demonstrating how to get results from the website when you press enter key

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

    2:48

  • @aviroopmitra5353
    @aviroopmitra5353 5 месяцев назад +1

    this video was cracked

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

    Hi All,
    This was a very helpful video, however, I do have a question:
    Why do you pass in the global object "this" to the selectInput() function code snippet is below. Thank you for your assistance!
    function display(result) {
    const content = result.map((list) => {

    return `${list}}`
    });

    resultBox.innerHTML=`${content.join('')}`
    };
    function selectInput(list) {
    console.log(list)
    inputBox.value = list.innerHTML;
    resultBox.innerHTML='';
    }

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

    How do make the keywords directing to their content concerning

  • @AdibaIslam-or5qp
    @AdibaIslam-or5qp 9 месяцев назад

    Hi sir I want to add search bar......but search don't work
    Any think search

  • @AnmolSingh-x3o
    @AnmolSingh-x3o 7 месяцев назад

    this error on onclick function
    ReferenceError: selectInput is not defined
    at HTMLLIElement.onclick (index.html:1:1)

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

    Sir I downloaded the code , but the HTML code is not available, can I get any help from you.

  • @bilawallaptop9883
    @bilawallaptop9883 5 месяцев назад

    hi im newbie how to add in blog plz guide.

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

    how to add link i those searches if someone click that search it redirect him to that link pls tell

    • @SonuKumar-hz2ff
      @SonuKumar-hz2ff 11 месяцев назад +1

      do you found solution to this problem

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

    teach me to make a search engine in website, sir

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

      I will make that in 2nd part soon.

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

      @@GreatStackDev thank you very much sir🫡

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

    Bro how to add link (href) it.

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

    Can we click on it

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

      yes you can click on suggested search term to write it in the search box

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

    I don't know what is happening my JavaScript code is not working on my vs code

  • @ErzaScarlet-u4v
    @ErzaScarlet-u4v Год назад

    Mine is shown undefined. I can't fine the error.

  • @IsruKing-y1v
    @IsruKing-y1v 5 месяцев назад

    How to make their links?

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

    how to redirect to link when we search please tell me

    • @SonuKumar-hz2ff
      @SonuKumar-hz2ff 11 месяцев назад +1

      do you found solution to this problem

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

      @@SonuKumar-hz2ff yes

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

      @@SonuKumar-hz2ff yes

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

    How to add othe page link

  • @AnjaliGopal-xs5dd
    @AnjaliGopal-xs5dd 2 месяца назад

    my list don't vanish after clicking the input

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

    Pls I need an answer on how to solve this

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

    can you share the code?

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

    source code pls

  • @ДжавидЗалов-б3э
    @ДжавидЗалов-б3э Год назад

    how to implement a site search ?

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

    Sir where is source code

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

    Onkeyup not working plz help me

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

    bro why not work class="fa-light fa-magnifying-glass" :C

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

      you didn't add font awesome cdn link between your head tag

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

    my search fetching speed is low

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

    Bro how to add the links in each of the keyword ??? Need immediate

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

    Your English is very hard to understand sir can't able to understand it properly

  • @sammashon4311
    @sammashon4311 5 месяцев назад

    inputBox.onkeyup = function(){ this code isnt working

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

    Bro, if you stop providing the source codes, many of us (2000 of us) will unsubscribe from your channel.

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

    Hi is there any chance i can contact in WhatsApp because i am interested to design my web page please thanks

  • @philippe_1776
    @philippe_1776 9 месяцев назад +1

    Thank you very much, it is very helpful !

  • @ErzaScarlet-u4v
    @ErzaScarlet-u4v Год назад

    Mine is shown undefined. I can't fine the error.