解决方案 »

  1.   

    function id(periodId, formId) {
    document.getElementById('formId').value=formId;
    document.getElementById('periodId').value=periodId
    }
      

  2.   

    <input type="hidden" id="periodId" name="periodId"  value = ??? /> 
    <input type="hidden" id="formId" name="formId"  value =???  />id起不一样的
    function id(periodId, formId) {
    document.getElementById('periodId').value=periodId;
    document.getElementById('formId').value=formId;
    }