Hi, I’m working on a multi-lingual site where ajax is used to load and replace tags based on the elements id.
ie.
[CODE] <span id=”text_firstname”>First Name</span>
and the language tag is updated like this:
[CODE]document.getElementById(‘text_firstname’).innerHTML = data.langrow[‘text_firstname’];
we have a field with onblur/onfocus events to prompt the user to enter some input:
[CODE]<input id=”id_entername” value=”Enter Your Name” name=”name”
onblur=”if (this.value == ”) {this.value = ‘Enter Your Name’;}”
onfocus=”if (this.value == ‘Enter Your Name’) {this.value = ”;}” type=”text”>
what is the best way to replace the onblur/onfocus values to a different language?