开发者

input type button - label vs value

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜