You do not want to use a for-in loop to iterate over an Array object. A for-in loop serves a very different purpose: It iterates over all the properties in an object. You want to use a regular loop...
Object size
The only problem I see here relates to performance: RAM and the processing time it takes to traverse the object tree. From what I gather, a mobile version is probably out of the...
Since you are creating new DOM nodes by inserting a string using the innerHTML property of a DOM node, the document.forms collection is probably not getting updated with the new form.
Try returning false at the end of each click handler. This will cancel the click event and short circuit any default actions taken by the browser after processing a click event on an <a> tag.
Neither way for this particular problem. Furthermore, I've used many different ways, depending on the situation. The first question is, do you need to maintain state?
Object oriented JavaScript is useful even for simple things. Writing modular and reusable code is always a good idea --- even if all you are doing is processing a form submit, running some...