Why <input type="button"...? is it essential? Is that button only for aesthetical reason?
Isn't <input type="text" ...etc is enough?
naive question
Moderator: General Moderators
Re: naive question
Isn't it enough for what? I don't really understand what you're asking.
Re: naive question
Respectively: because I want a button, nope, nope, and nope.
Re: naive question
Sorry, my question is not clear enough.Celauran wrote:Isn't it enough for what? I don't really understand what you're asking.
To write an <input type="text" ....
is trying to submit some information through a form to a server.
But why there is a need for a button?
Simply <input type="text" and hit a return the information can also be submitted.
I just don't know why there is a need for a button?
Only for aesthetical reason? For giving people a place to click?
Perhaps, my knowledge for it is incomplete?
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: naive question
this could clear up the confusion for you
http://particletree.com/features/redisc ... n-element/
http://particletree.com/features/redisc ... n-element/
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: naive question
- Not everyone knows to hit enter to submit the form.
- As far as I know, it's not 100% guaranteed behaviour that all forms will submit when enter is typed.
- Accessibility issues.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.