$(document).ready(function(){$(document).on("change",".btn-file :file",function(){var e=$(this),t=e.get(0).files?e.get(0).files.length:1,n=e.val().replace(/\\/g,"/").replace(/.*\//,"");e.trigger("fileselect",[t,n])})}),$(document).ready(function(){$(".btn-file :file").on("fileselect",function(e,t,n){var l=$(this).parents(".input-group").find(":text"),i=t>1?t+" files selected":n;l.length?l.val(i):i&&alert(i)})});