Click here to Skip to main content
Sign Up to vote bad
good
See more: HTML
hello all,
Can anyone show how to translate a language from english to german by clicking germen in the dropdown lists....
pls show how it works for a simple login page.....
 

.html file:
<!doctype html>
<html>
<script type="text/javascript" src="e.js"></script>
<div id="logform">
	<form>
		<dl> <dt><label id="username">Login</label>
			<input type="text"  name="loginName" value=""></dt>
		<dt><label>Password</label>
		<input type="password" id="password" name="loginPass" value=""></dt>
		<dt><select ><option>English</option>
		<option  önClick="tran();">German</option>
		</select></dt></dl>
	</form>
</div>
</html>
 

.js file:
function tran(){
var str=document.getElementById("logform").innerHTML; 
var n=str.replace("Password","Kennwort");
document.getElementById("password").innerHTML=n;
}
i done only for changing password.... but its not working.... can anyone help me
Posted 25-Sep-12 1:52am
Edited 25-Sep-12 2:18am

Comments
Legor - 25-Sep-12 7:58am
It's called German. If you yourself doesnt even know how the language is called your trying to translate to ... do you really think you can write a program which can do this?
GowthamVenkatesan - 25-Sep-12 8:16am
sorry... typed by mistake

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Christian Graus 544
1 Ron Beyer 296
2 OriginalGriff 258
3 samadhan_kshirsagar 229
4 Sergey Alexandrovich Kryukov 183
0 Sergey Alexandrovich Kryukov 7,007
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,372
4 CPallini 2,975


Advertise | Privacy | Mobile
Web03 | 2.6.130617.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid