hi i am using document.getElementById(‘trgtLng[1]’).value to get the value of textarea but i am not getting the value of it. the textarea contains UTF-8 string.
@SixteaseOct 29.2007 — #Hello to you. I think the problem is in 'trgtLng[1]'. That would be a string and it all seems to me that you're trying to access the first element of array trgtLng. If that's the case, then omit the quotes: document.getElementById(trgtLng[1]).value Hope I'm not missing something, I'm a JavaScript newbie myself.
@KorOct 29.2007 — #...or, if it is really a string and your element has indeed an id="trgtLng[1]" you should have not used brackets, as it is not permitted in HTML or XHTML