情况并不局限于圣烈士街的网站插件,而是它的最新症状:
一个页面用以下形式打开一个模式:
<form id="frmCreateDonorPerson" action="/donor/createPerson" method="post"> <input type="text" id="txtLine1" name="txtLine1"> etc. etc. </form>
下面的javascript没有模态情况(即,当我直接导航到页面时),创建SmartyStreets地址验证器Jquery体验没有问题:
var ss = jQuery.LiveAddress({ key: "30340983409834098", target: "US", addresses: [{ address1: '#txtLine1', etc. etc. }] });
我期待实时选项填充圣烈士街的网站插头,而任何东西都被输入到"Line1“框中。
But...nada。
在其他类似的情况下,我注意到了这种奇怪的症状("Jquery in a modal"),我研究了这个问题短语的解决方案,但似乎没有任何解决方案能回答这个问题。
超提前!
发布于 2017-12-05 21:59:08
我认为默认情况下,SmartyStreets对象会将自己附加到address字段,并在该页面中找到父表单元素。您的模式使用iframe还是内联的?如果它是一个iframe,我认为它将有困难定位的形式。
https://stackoverflow.com/questions/46029072
复制相似问题