从弹出窗口中选择图像并显示在主页面中
Select image from popup and display in main page
我正在使用bootstreap3弹出窗口(模型)从计算机中选择图像。我希望当用户选择一个或多个图像时,弹出窗口应该关闭,图像上传预览应该显示在主页面(<i class="fa fa-image image-popup-open" data-toggle="modal" data-target=".photo-modal-lg"></i>
下方)。
我的代码是
<div class="form-group">
<div class="controls form-inline">
<i class="fa fa-image image-popup-open" data-toggle="modal" data-target=".photo-modal-lg"></i>
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4>Upload Images</h4>
</div>
<div class="modal-body">
<div class="modal-title">
</div>
<div id='content' class="tab-content">
<div class="tab-pane active" id="uplod">
<h1>Drag and Drop files using Dropzone.js</h1>
<form action="upload.php"
class="dropzone"
id="my-awesome-dropzone"></form>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</div>
</div>
我的代码在这里。如何进行
document.getElementById("imageid").src="../template/save.png";
相关文章:
- 在主页上时,我的整个导航都会突出显示
- Magento网站上线直播服务器只显示主页
- Jquery显示的导航不'单击'主页'
- 如何在主页后显示图像
- 使用服务器端includes检查当前页面是否为主页——如果是,则显示脚本标记
- 在Magento 1.4.2中HelloSlide主页块中显示的产品数量
- 首次加载 json 数据请求并在主页中显示相同的数据
- HTML “标题”属性显示单词“未定义” - 例如.“主页未定义”
- 网络摄像头未显示在主页上
- 如何在加载主页时显示“加载屏幕”
- jQuery仅在主页上显示元素ID
- 如何从数据库在主页上显示视频列表
- 角度模板未显示在主页上
- 显示来自我的控制器的错误消息,并重定向回我的主页
- 在主页准备时显示加载页面
- 在 Ionic 的标题栏中动态显示主页按钮
- 如何在主页滑块的 jquery 脚本中显示
- AngularJS谷歌动态标题不显示在主页上
- 主页没有显示在谷歌铬
- 代码在主页中工作,但不在内部目录中工作 - 仅显示加载