I have a simple submit button like this:
<button
type="submit"
value="Create New Item"
className="btn btn-lg btn-primary btn-block mt-4"
/>
and I've been wondering, why the value
(label of the button) has the default value instead of desired one ("Create New Item"
), no matter what I do.
The same goes to input type="submit"
, but after reading this, I decided to stick with button
.
Any ideas why I can't change the value?