Creating new form elements when more inputs are needed
Variable numbers of inputs can be tricky when creating a web form. We have all come across those web forms that have a static number of multiple blanks all set to take variable amounts of the same type of information. For instance, what if our form is to collect employment information; the arbitrary number of 5 blanks might be too many for some and still not enough for most. Creating that form with a variable number of blanks would solve that issue.
Getting ready
Knowing which information we need to collect will really speed up our development. We can write down on a sheet of paper the fields we will need to collect, group them intelligently, and then lay them out in our HTML in an eye-appealing ...
Get MooTools 1.3 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.