Input Type Button - Label vs. Value

I think the usual behavior of a button like the one below is that the value attribute also serves as a label:

 <input type="submit" name="submitButton" value="DeleteAnswer22" /> 

Is it possible to have separate attributes for the displayed label and value?

+76
html
Apr 18 2018-11-11T00:
source share
1 answer

Use an HTML-Button element of type submit , instead:

 <button type="submit" name="submitButton" value="DeleteAnswer22">Delete Answer 22</button> 

As a result, a submit button appears that sends the value DeleteAnswer22 , but displays "Delete response 22".

+123
Apr 18 2018-11-11T00:
source share



All Articles