-4
<!DOCTYPE html>
<html lang="en">
<head>
<title>jsdom</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
</head>
<body>
<div class="container mt-3">
<div class="card-columns">
<div class="card text-center">
<div class="card-header">Item A</div>
<div class="card-body">
<h4 class="card-title">R$ 5.00</h4>
<button type="button" class="btn btn-primary" id="bt-a">Adicionar</button>
</div>
</div>
<div class="card text-center">
<div class="card-header">Item B</div>
<div class="card-body">
<h4 class="card-title">R$ 10.00</h4>
<button type="button" class="btn btn-primary" id="bt-b">Adicionar</button>
</div>
</div>
<div class="card text-center">
<div class="card-header">Item C</div>
<div class="card-body">
<h4 class="card-title">R$ 20.00</h4>
<button type="button" class="btn btn-primary" id="bt-c">Adicionar</button>
</div>
</div>
</div>
<div class="card text-center">
<div class="card-body"><h4 class="card-title">R$ <span id="total">0.00</span></h4></div>
</div>
</div>
</body>
<script>
</script>
</html>
Friend, try to explain your problem better...
– user219228
Type a shopping cart, in which case you add the values and will show total....
– Eduardo
you can help me ?
– Eduardo