serialize form in javascript
摘要:
1 function serialize(form) { 2 var parts = new Array(); 3 var field = null; 4 5 for (var i = 0, len = form.elements.length; i < len; i++) { 6 field = form.elements[i]; 7 8 switch (field.type) { 9 case "select-one":10 ... 阅读全文
posted @ 2013-05-16 20:50 雷音 阅读(176) 评论(0) 推荐(0) 编辑