Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 Store Locator 插件添加到 wordpress 站点并启用它。表单操作依赖于 jQuery,因为它会从 Google 显示最近的商店的地图。
客户想要一个包含带有邮政编码输入的表单的侧边栏,该表单将重定向到商店页面并填写邮政编码输入。我想知道是否有任何方法可以检查输入的长度(在商店页面上)是否为空,如果它不为空,则自动提交表单。
本质上,如果用户使用侧边栏搜索邮政编码,当商店页面加载并填写邮政编码输入时,它应该自动提交表单并显示结果(而不是用户必须再次单击提交)