Through ajax, the textbox value (time) is constantly updated, and the value received in the background is empty when the request is submitted. solution:

Source: Internet
Author: User
Through ajax, the textbox value (time) is constantly updated. when submitted, the backend receives the value but it is blank. the solution is as follows: I am too confused and I don't have much points, help me change ------ solution ------------------ I will help you slightly modify JScriptcodefunctionTIMEfunc () {$. post (& quot ;.. gettime. php & quot;, function (tim uses ajax to constantly update the textbox value (time). when submitting the request, the backend receives the value but it is blank. solution:
For example, I'm confused. I don't have much points. please help me.

------ Solution --------------------
I will make some changes for you
JScript code
Function TIMEfunc () {$. post (".. /gettime. php ", function (time) {$ (" # tijiaoTIME "). attr ({'value': time}) ;}); setTimeout ("TIMEfunc ()", 1000);} script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.