0

I don't understand why there's input value= "submit" and input value="send" when the input type is same which is "submit"

I don't understand why there's input value= "submit" and input value="send" when the input type is same which is "submit" and I also don't understand what's the difference between them and what they do and I also don't understand what class means here. Input type="submit" value = "submit" Input type ="submit" value= "send" class= "submit"

13th May 2019, 7:29 AM
radib r.
radib r. - avatar
1 Resposta
+ 1
The value is just a attribute to set the name of the button it does nothing, whatever you write in value , But the main work of this is summiting the form and sending some data to servers Even you can write your own name in value attribute, it doesn't matter https://code.sololearn.com/WQb7Niv2yU5o/?ref=app
13th May 2019, 8:22 AM
Bug Slayer