Комментарии:
ff
ОтветитьYou didnt show close on blur. Actually i know but i want to see another solution.
ОтветитьCan I possible using this menu for search a image in my website gallery? Thank you
ОтветитьBut now i have to update code for database..how can i give name because it was an div please help
ОтветитьLOVE this! <3
Ответить❤❤❤great
ОтветитьCan you give them a value?
Ответитьas always, awesome!!
ОтветитьAdd voice to your video ☺️ plz that is good but adding voice to make video better
ОтветитьFor The algo
ОтветитьPlease do the videos with explanation..
ОтветитьThnx for tutorial! Very simple and clean!;)
ОтветитьLooks great just one question... How do you save it's value to send it on a submit form ? thank you!
ОтветитьAwesome 👌....plz make video on multiple select....
ОтветитьThanks for the tutorial.
I made a small change for older browsers - especially for the InternetBrowser (no startsWith())
HTML-File:
<div class="search" data-search="start"> .. new Data-Attribute
JS-File: at searchInp.addEventListener("keyup", ...
var searchWord = searchInp.value.toLowerCase();
arr = source.filter(function(data) {
var strVal = data.toLowerCase().search(searchWord);
var searchPos = searchDiv.getAttribute("data-search"); ... searchDiv = wrapper.querySelector(".search");
if(searchPos == "start") { ... Item starts with searchWord
return strVal == 0 ? true : false;
} else { ... Item contains searchWord
return strVal > -1 ? true : false;
}
}).map(function(data) {
I also set selected LI on top:
var liHeight=30; ... heigth of LI-row
function addSource(selectedCountry) {
options.innerHTML="";
var cnt=0; var sel = false;
source.forEach(function(country) {
var isSelected="";
if(sel == false) {cnt++};
if(country == selectedCountry) {
var isSelected = "selected";
sel = true;
}
var li = '<li onclick="updateName(this)" class="'+isSelected+'">'+country+'</li>';
options.insertAdjacentHTML("beforeend", li);
options.scrollTop = (cnt-1)*liHeight;
});
}
Thanks again and keep going
Sir how to automatically close the dropdown when anyone clicks outside the dropdown menu, please guide me.
ОтветитьThank you!
Ответитьbro, how to get the selected value? cause i want to insert the selected value into the database
Ответитьthank u so much very helpful video sir 🥰🥰
ОтветитьAny way to display innerhtml once a country is selected?
ОтветитьHow about selects that have content that change frequently?
Ответитьcan you do a tutorial on how to insert the selected country to database
ОтветитьNice content as always. Question: do you know how to close the dropdown menu when you click outside of it? That would be the only thing from a regular dropdown that is missing from here. Thanks.
ОтветитьGreat tutorial, I had looked and followed others and couldn't get them to work but this one did, thanks for taking the time out to do this for those of us who are new to JavaScript
ОтветитьFrom VietNam <3 Thankyousomuch <3
ОтветитьGood Job Man ..... ! Thank you Very Much....All is done Bro...
Ответитьhow to use on multi select menu
Ответитьplease put more trash music into the videos, its awesome
Ответитьamazing sir, thank you very much sir
Ответитьhow to deactive select menu when click not on select menu
ОтветитьRespect dude, your thumbnails are extremely clean
ОтветитьVery useful for my learning, thanks a lot from Panama.
ОтветитьIs there a specific reason for using the toLowerCase() method in the search event listener or is it just a matter of preference?
ОтветитьPlease ptc website script video create
Ответитьdo your videos work in repl it?
ОтветитьHey hi bro, thank you for the chatting App video, quite helpful. I read , understands and practice your code for 4 months. And created an app for my self. And presented to my college as a Bachelor’s project. And I got 8/8 points (100%) mark for the project, thank you soo much again. Maybe someday I’ll repay you back.
Love & respect from India
useful videos
ОтветитьWow Bangladesh is here i am in Bangladesh 🥰🥰🤩
ОтветитьThe Nepali Pro Player Is Great
ОтветитьTq so so much
ОтветитьGreat video! Can you add, How to make this select multiple and add all selected values to select button with option to deselect / remove the wrongly selected value from list?
ОтветитьBest Tutorial 🎉🎉
ОтветитьSir, your work is awesome 😘.
I want to suggest you that you have to make a little bit tutorials on table. ☺️
amazing code😎🤠
ОтветитьI really like your channel Coding Nepal...
Ответитьthanks video
Ответить