Menu
I have an input and output text area and a convert button. It’s programmed so that, if I type for example the letter “k” in the input text area, I get back the letter w, which is exactly what I want. But I would like to use it for 2 letters as well. For example I want if I type “kh” I want to get “p”. Would that be possible? especially if it’s in a simple code like the one below:
[CODE]function convertchar(letter)
{
if (letter==”k”) {return “w”}
else if (letter==”g”) {return “z”}
else if (letter==”t”) {return “d”}
Something simple as this (even though it is wrong:
[QUOTE]
else if (letter==”k+h”) {return “p”}