地址自动填充可以改变我输入的值吗?

时间:2017-05-13 14:40:01

标签: html5 google-chrome autocomplete autofill street-address

我有一个html5输入字段,为我的地址启用了自动填充功能。

#include <stdio.h>

struct llist {
        struct llist * next;
        int data;
        };

struct llist *chop_odds(struct llist **source)
{
struct llist *odd = NULL;
struct llist **target = &odd;

while ( *source) {
        if((*source)->data %2) { /* odd */
                *target = *source;         // steal the pointer
                *source = (*source)->next; // source skips this node
                target = &(*target)->next; // advance target
                }
        else source = &(*source)->next; /* even */
        }
*target = NULL;

return odd;
}

当我输入时,我的地址显示在输入下方的下拉列表中,但是当我从下拉列表中选择我的地址时,没有任何反应(我希望我的地址可以填充到input.value中)

除了允许地址选择将input.value更改为我选择的地址外,我还需要做些什么吗?

0 个答案:

没有答案
相关问题