I have created one javascript file(.js) for Language Settings. So how can I get values from this file.?
File.
{
"language" : "german",
"glossary" : {
"Level" : "Ebene",
"Codes" : "Codes",
} }
So how to set value to particular label.?
I want “Ebene” instead of “Level”.
For Eg.
<script type="text/javascript"> document.getElementById("lblLevel").innerHTML = glossary["Level"];
<div class="level">
<b id = "lblLevel">Level</b>
</div>
But Its not working.
Any Idea..?
Thanks in Advance.
@Manan This is working and tested code. Try it. If you have any other issue then comment else up vote the answer and close the question.