jQuery inputfile 自定义按钮,可以删除选择好的内容
jQuery inputfile 自定义按钮,可以删除选择好的内容
XML/HTML Code
- <div class="wrapper">
- <div class="container">
- <div class="panel">
- <p> The plugin simpley replaces a file input with a button and gives you the ability to remove your selection easily </p>
- <input type="file"/>
- </div>
- <div class="panel">
- <p> You can also load a previously uploaded file and remove it </p>
- <input type="file" data-value="http://www.google.es/" data-text="im_a_file.txt"/>
- </div>
- </div>
- </div>
- <script src="jquery.inputfile.js"></script>
- <script>
- $('input[type="file"]').inputfile({
- uploadText: '<span class="glyphicon glyphicon-upload"></span> Select a file',
- removeText: '<span class="glyphicon glyphicon-trash"></span>',
- restoreText: '<span class="glyphicon glyphicon-remove"></span>',
- uploadButtonClass: 'btn btn-primary',
- removeButtonClass: 'btn btn-default'
- });
- </script>
相关推荐
周公周金桥 2020-09-06
大象从不倒下 2020-07-31
AlisaClass 2020-07-19
MaureenChen 2020-04-21
xingguanghai 2020-03-13
teresalxm 2020-02-18
木四小哥 2013-05-14
SoShellon 2013-06-01
Simagle 2013-05-31
羽化大刀Chrome 2013-05-31
waterv 2020-01-08
LutosX 2013-07-29
vanturman 2013-06-27
wutongyuq 2013-04-12
luoqu 2013-04-10
today0 2020-09-22
89520292 2020-09-18
bigname 2020-08-25