Thanks a lot for the solution. I have a problem though. The code works like a charm for one text input box. However, when I create more than one boxes (I need multiple entry from the same array) the code does not work for the other boxes but only for the first one.
I would really appreciate the help.