使用Onblur从文本框中提取信息 [英] Extract info from a textbox using Onblur

查看:160
本文介绍了使用Onblur从文本框中提取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用onblur命令将3个文本框中的数据提取到同一页面中的另一行。


我的客户输入他们的5位数邮政编码,OnBlur填充城市并且从数据库中说明没有刷新。


我希望能够从文本框中提取或获取信息:zipcode,city和state并将其放置在在OnBlur执行的同时,表单的顶部,换句话说,我希望Onbllur执行城市和州的自动填充,并进行更新并一起显示如下:


例如:

客户:输入:邮政信箱:95051

数据库填充:城市邮箱和州框


Santa Clara,CA 95051< - 这是没有文本框的结果我想要以相同的形式出现。

I''m trying to extract data from 3 textboxes to another line in the same page using the onblur command.

My client inputs their 5 digit zipcode and OnBlur fills the city and state from a database without refreshing.


I want to be able to extract or grab the info from the textboxes: zipcode, city, and state and place it at the top of the form at the same time when OnBlur is executed, in other words I want Onbllur to execute the auto fill in of the city and state and also do the update and show all together as follows:

example:
Client: inputs: zipcode box:95051
database fills: city box and state box

Santa Clara, CA 95051 <-- This is the result without a textbox tha I wan to achive to be located in the same form.

展开 | 选择 | Wrap | 行号

推荐答案

Heya,Ed。


什么是你的代码在做你不想要的吗?举个例子。

你的代码是什么*不是*它应该这样做?举个例子。
Heya, Ed.

What is your code doing that you don''t want it to do? Give an example.
What is your code *not* doing that it is supposed to? Give an example.


你好pbmods,这里是代码:


php:

Hi pbmods, here''s the code:

the php:

展开 | 选择 | Wrap | 行号


发布源代码时请使用CODE标记。请在下次发布时查看页面右侧的REPLY GUIDELINES。
Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.


这篇关于使用Onblur从文本框中提取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆