Bootstrap FileInput 选择文件后出的清空 重置按钮

因为我是点击上传后数据是临时放在后端的 我想点击清空后台数据久要获取到清空按钮这个元素但是他是动态生成的所有我在网上找了很多说明都没有找到后来我只能手动自己去修改了 fileinput.js  写个记录防止自己后面又用到同时给大家借鉴

'<script type="text/javascript">

$("#removel").click(function(){$.ajax({type: "post",url: urll+"/LeavingMessage/mapinfo",dataType: "json",success: function (data) {},error: function (data) {},});});</script><button type="button" id="removel" title="' + self.removeTitle + '" class="' + css + '"' + status + '>' + self.removeIcon + self.removeLabel + '</button>'  这个ID原本是没有的我自己手动加上去的