Submit a value in javascript div

div elements don’t have a value property, and they will never get submitted with a form – use an input element instead. Also note that {MIN_BIDS} isn’t a valid JS identifier; if you want to obtain that value from an HTML element, you might store it as a data-* attribute, and access it like e.g.


<div id="win" data-min-bids="42"></div>


var win = document.getElementById('win')
var minBids = win.dataset.minBids
var x = minBids * 1.95

win.textContent = x

BTW, isn’t this the exact same question as in your other recent thread?