Take the 2-minute tour ×

That's a terrible way to ask that question, so let me do my best to explain. Let's say you want to make a quick order form for a website: it has two columns (quantity and item, say), and ten rows, so the customer can order up to ten items. The form must require an item number, but only if a quantity is entered, because if the customer only needs to order 2 items, you can't fail them for the 8 blank rows.

Ordinarily I validate and require forms with HTML5's validation and requiring functions, but I don't know of a way to turn those functions "off" for a set of fields that aren't going to be used. (Or to force the page to add new rows as the customer fills the old ones, or with a click, another solution I explored.) Suggestions?

(Also: I've asked this question terribly, and explained it terribly, so clarification questions aren't even remotely unreasonable. Sorry for sucking a bit, and thanks.)

share|improve this question
Is there more information I should include, to make an answer more likely? –  user2824174 Sep 30 '13 at 12:37
add comment


Your Answer



Browse other questions tagged or ask your own question.