Difference between revisions of "Javascript Auto-complete"

From Level Access Web Labs
Jump to navigation Jump to search
Line 72: Line 72:
 
}
 
}
 
//wiki does not like this ampersand symbol for and. This is a problem as it needs to be there...
 
//wiki does not like this ampersand symbol for and. This is a problem as it needs to be there...
 +
//since wiki does not like ampersand, creating redundant code
  
else if ((e.which !=9) && (e.which !=18)){
+
else if (e.which !=9){
 
clearList();
 
clearList();
 
popList();
 
popList();
 +
                if ((e.which !=18){
 +
  clearList();
 +
  popList();
 +
        }
 
}
 
}
+
 
 
if (e.which ==8) { //backspace
 
if (e.which ==8) { //backspace
 
clearList();
 
clearList();

Revision as of 15:13, 4 April 2014

Autocomplete using plain javascript