seems like awful advanced coding for something so simple. i did it in about 18 lines of code.
it will even search multiple keywords, instead of just specific phrases. in fact, if you don't need/want that, you can remove 3 more lines of array code, and just use indexOf(val).
doesn't work for multiple tables, but you could easily modify it to.
seems like awful advanced coding for something so simple. i did it in about 18 lines of code.
it will even search multiple keywords, instead of just specific phrases. in fact, if you don't need/want that, you can remove 3 more lines of array code, and just use
indexOf(val)
.doesn't work for multiple tables, but you could easily modify it to.
I probably got a bit carried away, especially on optimization :)
Anyway, your code is great and the fact that you can search multiple keywords is interesting.