skip to Main Content

I used html code like below for replace "send" word with "submit" in input element.

<input type="submit">Send

this happened (error screenshot):
error screenshot

but I want shows form input like below without uses value property:
success screenshot

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


  1. You can’t simply change the type of an <input> to anything you like. You want to instead use a button element, setting the type to submit, and giving it the text you want, like:

    <button type="submit">Send</button>
    
    Login or Signup to reply.
  2. The way you change the button text for an <input> type of "submit" is to set the value attribute of the import control

    <input type="submit" value="Send">
    

    The value "Send" will be sent to the server.

    Alternatively, you could use a <button> element.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search