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原本是沒有的我自己手動加上去的