Home  >  Article  >  Backend Development  >  通过ajax不断更新textbox值(时间),提交的时候后台接受到值却为空,求解决办法

通过ajax不断更新textbox值(时间),提交的时候后台接受到值却为空,求解决办法

WBOY
WBOYOriginal
2016-06-13 09:59:18844browse

通过ajax不断更新textbox值(时间),提交的时候后台接受到值却为空,求解决方法
如题,太疑惑了,分不多,大家帮帮我把

------解决方案--------------------
我帮你稍作修改

JScript code
function TIMEfunc(){  $.post("../gettime.php",function(time){$("#tijiaoTIME").attr({'value':time});  });  setTimeout("TIMEfunc()",1000);}<div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn