• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

using usd/doge

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to use the second and third lines javascript info, to get the doge/usd to be used in the second javascript, first 2 lines, but it does not work, how van i get it to work.








 
Saloon Keeper
Posts: 7073
165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to use getElementById("USD") you need to have an element that has an id of "USD". AFAICT, there is none with that id.

jQuery probably has functions that can retrieve an element that has a data-code-id of "USD", but I don't think JavaScript itself has that.
 
Hendrik Bezuidenhout
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:If you want to use getElementById("USD") you need to have an element that has an id of "USD". AFAICT, there is none with that id.

jQuery probably has functions that can retrieve an element that has a data-code-id of "USD", but I don't think JavaScript itself has that.



Is there any other way to do this,
 
Tim Moores
Saloon Keeper
Posts: 7073
165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seem to be easy with jQuery: https://www.geeksforgeeks.org/how-to-select-elements-by-attribute-in-jquery/
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic