ampproject / ampproject/amp.dev

interactivity-dynamic-content/ComboBox.html , problem and solution

Open
#5,736 8 comments 0 reactions 0 assignees View on GitHub
Category: Content Status: Pending Triage
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

In the amp example no data is sent

![image](https://user-images.githubusercontent.com/69035383/115901066-0229aa00-a461-11eb-837d-b0316da6d861.png)

In this second case it makes an empty request, because an on = "... sumit" is not made

In this third photo you can see how the data is sent through the form What is missing?

![image](https://user-images.githubusercontent.com/69035383/115901462-84b26980-a461-11eb-98fb-3aab77533b8c.png)

the name attribute

![image](https://user-images.githubusercontent.com/69035383/115901560-a7448280-a461-11eb-9745-c3aee7ebd0a8.png)

and the submit button or an event that sends the form

Alternative

![image](https://user-images.githubusercontent.com/69035383/115901987-2f2a8c80-a462-11eb-9a24-ff3c831bbf6a.png)

Event when form changes
![image](https://user-images.githubusercontent.com/69035383/115902042-423d5c80-a462-11eb-919c-2305795f1e08.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.