Click here to Skip to main content
Rate this: bad
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>
<script type="text/javascript" src="e.js"></script>
<div id="logform">
		<dl> <dt><label id="username">Login</label>
			<input type="text"  name="loginName" value=""></dt>
		<input type="password" id="password" name="loginPass" value=""></dt>
		<dt><select ><option>English</option>
		<option  önClick="tran();">German</option>

.js file:
function tran(){
var str=document.getElementById("logform").innerHTML; 
var n=str.replace("Password","Kennwort");
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
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
Your Filters
0 Sergey Alexandrovich Kryukov 442
1 sanket saxena 355
2 Abhinav S 268
3 OriginalGriff 250
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107

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