Untitled


SUBMITTED BY: Guest

DATE: Nov. 4, 2013, 8:53 a.m.

FORMAT: Text only

SIZE: 802 Bytes

HITS: 84500

  1. // array is goes here
  2. function startText() {
  3. var str=document.getElementById("intxt").value;
  4. var matchkeyword = str.charAt(str.length-1);
  5. // code extends
  6. var sugest = "";
  7. for (var i = 0; i < consonants.length; i++) {
  8. if (consonants[i].match(matchkeyword.value) != null && matchkeyword.value != "") {
  9. sugest = sugest + "<br>" + consonants[i] + "=" + consonantsUni[i];
  10. }
  11. }
  12. y = document.getElementById("sugdiv");
  13. y.innerHTML = sugest;
  14. }
  15. var matchkeyword = str.charAt(str.length-1);
  16. if(consonants[i].match(matchkeyword.value) != null && matchkeyword.value != "") {
  17. if(consonants[i].match(matchkeyword) != null && matchkeyword != "") {

comments powered by Disqus