This article illustrates the method of jquery+php real-time acquisition and response to text box input. Share to everyone for your reference, specific as follows:
The program can identify available balances:
HTML section:
<input type= "text" name= "username" id= "username" onkeyup=
"Search_func (this.value);"/> <em
" Mfee "></em>
jquery section:
function Search_func (value) {
$.post ("/xxx.php", {q: "Action/cash_news", username:value},function (result) {
var r = "Available Amount" +result+ "Yuan";
$ ("#mfee"). HTML (r);
$ ("#moneyss"). Val (result);}
);
More interested readers of jquery-related content can view the site's topics: A summary of Ajax usage in jquery, a summary of jquery table (table) operations tips, a summary of jquery drag-and-drop effects and techniques, a summary of jquery extension techniques, jquery Common Classic Effects Summary "jquery animation and special effects usage Summary", "jquery selector usage Summary" and "jquery common Plug-ins and Usage summary"
I hope this article will help you with the jquery program design.