function getdate()
{

 //获取ID为cargetdate下面的input为text的ID和value,如果是页面所有的input则将document.getElementById("cargetdate")换为document即可
 var list=document.getElementById("cargetdate").getElementsByTagName("input");

 var strData="";
  //对表单中所有的input进行遍历
 for(var i=0;i<list.length && list[i];i++)
 {
       //判断是否为文本框
       if(list[i].type=="text"&&list[i].id!="subEmail")  
       {
            strData +=list[i].id+":"+list[i].value+"--";          
       }
 }
 return strData;
}

相关文章:

  • 2022-12-23
  • 2021-08-19
  • 2021-10-10
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-10-15
  • 2021-12-16
猜你喜欢
  • 2021-09-21
  • 2021-12-12
  • 2021-10-15
  • 2022-12-23
  • 2021-12-26
  • 2021-12-31
  • 2021-05-31
相关资源
相似解决方案