I used html code like below for replace "send" word with "submit" in input element.
<input type="submit">Send
this happened (error screenshot):
but I want shows form input like below without uses value property:
I expected the "send" word written after the end of the "input" close tag to be replace in the "input" title as submit title
2
Answers
You can’t simply change the
type
of an<input>
to anything you like. You want to instead use a button element, setting thetype
tosubmit
, and giving it the text you want, like:The way you change the button text for an
<input>
type of "submit" is to set thevalue
attribute of the import controlThe value "Send" will be sent to the server.
Alternatively, you could use a
<button>
element.