【发布时间】:2015-09-01 22:44:41
【问题描述】:
我有一个谷歌表单,我将它嵌入到我的网站并更改 css,因此它可以发布到谷歌表格。
<form action="https://docs.google.com/forms/d/FormID/formResponse" method="POST" target="_self" onsubmit="" role="form">
<table>
<thead>
<tr>
<th>Friends name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-group">
<input type="text" name="entry.ID" value="" id="entry_ID" class="form-control" dir="auto" aria-label="Name " title="">
</div>
</td>
<div>
<input type="submit" name="submit" value="Submit" id="button-submit" class="btn btn-primary btn-block">
</div>
</form>`
现在,如果您注意到按钮是此处的输入,我想要做的是保持表单正常发布到谷歌表格,而不向用户显示任何内容,我想将用户重定向到不同的页面成功消息或一些表示发布有效的 jquery 操作。 我希望我足够具体,谷歌没有帮助,我找不到类似的东西, ps:我删除了大部分不相关的代码和输入。
【问题讨论】:
标签: javascript jquery html forms dom-manipulation