Title: Java Script
Last modified: November 13, 2018

---

# Java Script

 *  [Saef Reyad](https://wordpress.org/support/users/safago/)
 * (@safago)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/java-script-7/)
 * 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 Document
 * var 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/java-script-7/#post-10875582)
 * Yeah – JavaScript will add the shortcode after the post has been written, so 
   shortcodes will have been run by then. There isn’t an easy way to do this – what’s
   the reason for doing this in JavaScript?
 *  Thread Starter [Saef Reyad](https://wordpress.org/support/users/safago/)
 * (@safago)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/java-script-7/#post-10894380)
 * Hi, thanks for your reply.
    am doing this for a client and i want him to be able
   to change the prices if he needs so he will change the EGP and the $ will change
   accordingly. will VUE make a different?
 * Thanks
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/java-script-7/#post-10895184)
 * Sorry, I have no experience with vue.js

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Java Script’ is closed to new replies.

 * ![](https://ps.w.org/artiss-currency-converter/assets/icon.svg?rev=3021002)
 * [Open Currency Converter](https://wordpress.org/plugins/artiss-currency-converter/)
 * [Support Threads](https://wordpress.org/support/plugin/artiss-currency-converter/)
 * [Active Topics](https://wordpress.org/support/plugin/artiss-currency-converter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/artiss-currency-converter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/artiss-currency-converter/reviews/)

## Tags

 * [java-script](https://wordpress.org/support/topic-tag/java-script/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/java-script-7/#post-10895184)
 * Status: not resolved