Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
v4
Comments
Legor at 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 at 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
0 Sergey Alexandrovich Kryukov 310
1 CPallini 310
2 George Jonsson 269
3 Gihan Liyanage 255
4 OriginalGriff 245
0 OriginalGriff 4,903
1 CPallini 3,960
2 Sergey Alexandrovich Kryukov 3,474
3 George Jonsson 2,786
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web04 | 2.8.140905.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100