Top "Forms" questions

A form is essentially a container that can be used to hold any amount of any subset of several types of data.

HTML5 form required attribute. Set custom validation message?

I've got the following HTML5 form: http://jsfiddle.net/nfgfP/ Currently when I hit enter when they're both blank, a …

javascript html forms validation
Uploading both data and files in one form using Ajax?

I'm using jQuery and Ajax for my forms to submit data and files but I'm not sure how to send …

javascript jquery ajax forms
JavaScript code to stop form submission

One way to stop form submission is to return false from your JavaScript function. When the submit button is clicked, …

javascript html forms
What's the proper value for a checked attribute of an HTML checkbox?

We all know how to form a checkbox input in HTML: <input name="checkbox_name" id="checkbox_id" type="…

html forms checkbox html-input
How to disable/enable select field using jQuery?

I would like to create an option in a form like [] I would like to order a [selectbox with pizza] …

jquery html forms
Best way to track onchange as-you-type in input type="text"?

In my experience, input type="text" onchange event usually occurs only after you leave (blur) the control. Is there a …

javascript html forms
How to disable the resize grabber of <textarea>?

How to disable the grabber in the <textarea>? I mean that triangle thing which appears in the right-bottom …

html css forms
Check if option is selected with jQuery, if not select a default

Using jQuery, how do you check if there is an option selected in a select menu, and if not, assign …

javascript jquery forms dom html-select
Submitting a form by pressing enter without a submit button

Well I am trying to submit a form by pressing enter but not displaying a submit button. I don't want …

html forms submit
Submitting a form on 'Enter' with jQuery?

I have a bog-standard login form - an email text field, a password field and a submit button on an …

javascript jquery html webkit forms