将选择从 Colorbox 传递给父级
Pass selection from Colorbox to parent
我在我的一个表单中使用 Colorbox 模态来选择图像。有没有办法动态地将图像选择传递到 Colorbox 之外,然后关闭 Colorbox?
我一直在 Whosebug 上搜索,但找不到其他人试图实现同样的目标。
我明白了。
将 Jquery 添加到 Colorbox 中加载的文件后,我能够使用
window.parent.$("#select").after('<input type="hidden" name="image" value="' + img + '">');
我在我的一个表单中使用 Colorbox 模态来选择图像。有没有办法动态地将图像选择传递到 Colorbox 之外,然后关闭 Colorbox?
我一直在 Whosebug 上搜索,但找不到其他人试图实现同样的目标。
我明白了。
将 Jquery 添加到 Colorbox 中加载的文件后,我能够使用
window.parent.$("#select").after('<input type="hidden" name="image" value="' + img + '">');