I have the following html input attribute which I would like to pass its value as an argument to the function placeBid()
<input type = "number" name = "bidAmount" placeholder = "Bid Amount" required > and this is where I would like to pass it:
<input type = "submit" name = "submit" value = "PLACE BID" onclick="placeBid(bidAmount.value)"> any help on what I should put in the parameter?
https://stackoverflow.com/questions/67292950/html-attribute-value-to-be-passed-as-an-argument-for-a-javascript-function April 28, 2021 at 10:23AM
没有评论:
发表评论