Why is there an undefined/hidden element in my form?

I have 3 inputs in a form. However when I serialize the data using `funciton is()` there is a 4th field found in the array at element 0. I can fix this by just looping starting at 1, but does anyone know what this is? The debug output from IE looks like this "undefinedf0a=on&f0b=&f0c=" for var b. f0a, f0b, and f0c are my input names, "undefined" is the concern here. function is(a) { var b; var c = document.forms[a].elements; // test_input_signup(list) if(1) { for(i=0;iJust curuios as i might learn something, what is the purpose of if(1){}?

以上就是Why is there an undefined/hidden element in my form?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏