Java Script
-
i made a java script code to get the price from a field and convert it from Egyptian to us dollars but it shows me the code as its text while if i copy the same code it works fine like the last Procedure filed.
Java Script:
// JavaScript Documentvar myTable = document.getElementById(“myTable”);
var myPrice = myTable.getElementsByTagName(“td”);
for ( i = 5; i < myPrice.length; i += 3){
var x = i – 1;
var myNum = myPrice[x].innerHTML;
var myEditNumber = “[convert number=” + myNum + ” from=’egp’ to=’usd’] $”;
var changeCurruncy = myPrice[i].innerHTML = myEditNumber;
}
window.alert (“Java is WORKING”);
PLEASE ADVICE.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Java Script’ is closed to new replies.