我的表单有多个隐藏字段
<input type="hidden" class="mail-contacts" name="to[]" value="abc1">
<input type="hidden" class="mail-contacts" name="to[]" value="abc2">
<input type="hidden" class="mail-contacts" name="to[]" value="abc3">
Run Code Online (Sandbox Code Playgroud)
对于不同的情况,隐藏字段的数量可以不同。如何获取这些隐藏字段的值?由于这是一个数组,因此无法获取它
document.getElementById('')
Run Code Online (Sandbox Code Playgroud)
我需要获取这些隐藏字段的值,然后将其作为查询参数传递。请帮帮我。我怎样才能做到这一点?
我在我的项目中成功配置了 lightgallery。但是,当我单击缩略图并出现大图像时,上一个、下一个、关闭图标无法正确显示。事实上奇怪的字符正在显示。这可以在页面上查看:http : //agentpet.com/lightgallery/lg.html。请帮我看看有什么问题?