Version 1.5.1
The jQuery Filestyle this is a jQuery plugin for filestyle you forget to turn the input file's default browser. Customize as you like, it's yours now.
This plugin has an interesting way to present a form for sending files so attractive, while being simple and efficient.
<head> <link href="css/jquery-filestyle.min.js"> </head> <body> <input type="file" class="jfilestyle" data-theme="blue" data-input="false"> <script src="js/jquery.js"></script> <script src="js/jquery-filestyle.min.js"></script> </body>
Via JavaScript:
$(":file").jfilestyle({input: false});
Via data attributes:
<input type="file" class="jfilestyle" data-input="false">
Example:
Via JavaScript:
$(":file").jfilestyle({buttonText: "Find file"});
Via data attributes:
<input type="file" class="jfilestyle" data-buttonText="Find file">
Example:
Via JavaScript:
$(":file").jfilestyle({disabled: true});
Via data attributes:
<input type="file" class="jfilestyle" data-disabled="true">
Example:
Via JavaScript:
$(":file").jfilestyle({buttonBefore: true});
Via data attributes:
<input type="file" class="jfilestyle" data-buttonBefore="true">
Example:
Via JavaScript:
$(":file").jfilestyle({inputSize: "350px"});
Via data attributes:
<input type="file" class="jfilestyle" data-inputSize="400px">
Example:
Via JavaScript:
$(":file").jfilestyle({placeholder: "My place holder"});
Via data attributes:
<input type="file" class="jfilestyle" data-placeholder="My place holder">
Example:
Via JavaScript:
$(":file").jfilestyle({buttonText: "<span class='glyphicon glyphicon-folder-open'></span>"});
Via data attributes:
<input type="file" class="jfilestyle" data-buttonText="<span class='glyphicon glyphicon-folder-open'></span>">
Example:
$(":file").jfilestyle('clear');
$(":file").jfilestyle('destroy');
// get $(":file").jfilestyle('input'); // set $(":file").jfilestyle({'input': false});
// get $(":file").jfilestyle('buttonText'); // set $(":file").jfilestyle({'buttonText': 'My text'});
// get $(":file").jfilestyle('disabled'); // set $(":file").jfilestyle({'disabled': true});
// get $(":file").jfilestyle('buttonBefore'); // set $(":file").jfilestyle({'buttonBefore': true});
// get $(":file").jfilestyle('inputSize'); // set $(":file").jfilestyle({'inputSize': '400px'});
// get $(":file").jfilestyle('placeholder'); // set $(":file").jfilestyle({'placeholder': 'My text placeholder'});