Page 1 of 1

naive question

Posted: Tue May 29, 2012 7:34 pm
by wvoyance
Why <input type="button"...? is it essential? Is that button only for aesthetical reason?
Isn't <input type="text" ...etc is enough?

Re: naive question

Posted: Tue May 29, 2012 8:16 pm
by Celauran
Isn't it enough for what? I don't really understand what you're asking.

Re: naive question

Posted: Wed May 30, 2012 2:14 am
by requinix
Respectively: because I want a button, nope, nope, and nope.

Re: naive question

Posted: Wed May 30, 2012 8:02 pm
by wvoyance
Celauran wrote:Isn't it enough for what? I don't really understand what you're asking.
Sorry, my question is not clear enough.

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?

Re: naive question

Posted: Mon Jun 04, 2012 12:27 am
by social_experiment
this could clear up the confusion for you
http://particletree.com/features/redisc ... n-element/

Re: naive question

Posted: Mon Jun 04, 2012 2:08 pm
by pickle
  • 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.