CodeSOD: If I`ve Said It Once, I`ve Said It Fifty Times
pI can think of several ways to improve the code below from bJeff S./b, or at least to reduce its line count by two or three./p blockquote pre function submitTrap3() { var n = 0; var f =0; var elementItem = quot;quot;; if (window.event.keyCode == 13) { for (n=0;nlt;document.forms[0].elements.length;n++) { elementItem = document.forms[0].elements[n].name; if ((document.forms[0].elements[n].value != quot;quot;) amp;amp; (elementItem == trim(document.forms[0].txtControlName.v...
The Daily WTF , 05.11.2008 15:00:00
The Daily WTF , 05.11.2008 15:00:00
Locatia ta: Cutia cu Ştiri>
Ştiri naţionale
>
Ştiinţă/IT
>CodeSOD: If I`ve Said It Once, I`ve Said It Fifty Times
