I am having trouble with an input I'm trying to get the input of quantity then I have a onClick event that execute the function
<input type="number" name="quantity" min="1" max="10" value={item.quantity} className="form-control"/>
UpdateItem: function(_id) {
$.ajax({
url: 'http://localhost:3000/update/' + _id,
type: 'PUT',
data:"",
success: function(result) {
window.location.reload();
}
});
}
how do i get a new value on input value is al value={item.quantity} is always number that can't be changed?