开发者

input type button - label vs value

开发者 https://www.devze.com 2023-02-26 03:40 出处:网络
I think that the normal behavior of a button like the one below is that the value attribute serves as a label as well:

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

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

Is it possible to have separate attributes for display label and v开发者_StackOverflowalue?


Use the HTML Button element, with type submit, instead:

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

This will result in a submit button that sends the value DeleteAnswer22 but displays "Delete Answer 22".

0

精彩评论

暂无评论...
验证码 换一张
取 消