you are so lazy to do the "ADD USER" hahah sory :) this snippet help me in my project thank you
Dhaouadi Kassem () - 7 years ago - Reply 0
Argh.... Why mine not work....
Can someone share the exact code use...
I can't open the search box
Izwan () - 8 years ago - Reply 0
TypeError: $(...).searchable is not a function....
Anyone can help me with this.
Thanks :)
Jonathan Rivel () - 9 years ago - Reply 0
You need to add the searchable script at the bottom of your page (right before the contact list script):
<script src="//rawgithub.com/stidges/jquer..."></script>
David () - 8 years ago - Reply 0
I use this js fr searcj but not work disply result; please any help (https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_filter_list)
<script>
function myFunction() {
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById("contact-list-search");
filter = input.value.toUpperCase();
ul = document.getElementById("contact-list");
li = ul.getElementsByTagName("li");
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
</script>
Mpunga () - 4 years ago - Reply 0
You're not being lazy, you're being creative! Perfect snippet buddy, thanks!
waiylgeek () - 9 years ago - Reply 0
That's a good good one!That's a good good one!That's a good good one!
Yash No () - 9 years ago - Reply 0
That's a good good one!That's a gThat's a good good one!That's a good good one!That's a good good one!ood good one!
Yash No () - 9 years ago - Reply 0
Excelente!! , May download you Code for Complete "add" with AngularJs!??
yonaides () - 10 years ago - Reply 0
Unfortunately you would have to add the code yourself. Bootsnipp only shows visual elements for Bootstrap.
maxsurguy () - 10 years ago - Reply 0
No Problem, Already changed the Example, I was completed "Add" with AngularJs, Thanks, Later upload the Code!
yonaides () - 10 years ago - Reply 0
Uncaught ReferenceError: jQuery is not defined
Uncaught TypeError: undefined is not a function
$('#contact-list').searchable({
I must be doing something wrong with the script; any ideas?
Omar () - 10 years ago - Reply 0
I got it!
I left the searchable plug in with the html. I just loaded it after the JS from above... THANK YOU!
Omar () - 10 years ago - Reply 0
I probably should have made that stick out a little more. Glad to see you were able to fix it. If you experience any other issues let me know.
mouse0270 () - 10 years ago - Reply 0
Actually, it would indeed be great if you make it more obvious in the snippet. I ran into the same problem... Cheers, awesome snippet mate!
David () - 8 years ago - Reply 0
Very cool snippet! I'll be on approving spree the next few days :) stay tuned!
maxsurguy () - 10 years ago - Reply 0
Thanks! I'll have to see what I can do about getting my other snippets up in time than. haha. I got about five (three if you exclude this one and the other one I just submitted).
mouse0270 () - 10 years ago - Reply 0