List of Computer Science courses with video lectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
459 B

function mySearch() {
var input,filter,ul,li,a,i,textValue
input=document.getElementById("myInput")
filter=input.value.toUpperCase()
ul=document.getElementById("myUL")
li=ul.getElementsByTagName("li")
for(i=0;i<li.length;i++){
a=li[i].getElementsByTagName("a")[0]
textValue=a.textContent||a.innerText
if(textValue.toUpperCase().indexOf(filter)>-1){
li[i].style.display=""
}else{
li[i].style.display="none"
}
}
}