javascript - How to change the displayed text in label (for Internationalization) -


i have html file contains this

> <label id="remem" for"remem"><input type"checkbox" > name="remem"/>test</label> 

now im dealing i18n , working on translating these words. , need translate word test different language.

how change label (in example.."test" ) programmatically?? attribute should deal with?

thanks!

give text inside <span> tag id

> <label id="remem" for"remem"><input type"checkbox" > name="remem"/><span id="rememtext">test</span></label> 

then can use javascript manipulate text.

document.getelementbyid("rememtext").innerhtml = "another language"; 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -