Answer the question
In order to leave comments, you need to log in
How to parse value from json and display it in html element?
Good afternoon, there is a coindesk api that passes the btc price value: https://api.coindesk.com/v1/bpi/currentprice.json
I need to display the USD price value in a div element:
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Price</span>
</div>
<input type="text" class="form-control" placeholder="Цена из json" readonly>
<div class="input-group-append">
<span class="input-group-text">USD</span>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question