Simple file input styling: just add the class file and the plugin will handle styling the input:
<input type="file" class="file">
The number input provides an easy value selector for the user. Depending on the device, it will change shape to maximize usability: touch devices get big buttons on each sides of the inputs, mouse devices get smaller buttons and keyboard controls (up and down arrows to change value, use shift for larger increments).
<span class="number input margin-right"> <button type="button" class="button number-down">-</button> <input type="text" value="320" size="3" class="input-unstyled"> <button type="button" class="button number-up">+</button> </span>
This example uses a specific configuration: from 15 to 30, increments of 0.5 (5 if holding shift key) and a precision of 0.25.
<span class="number input margin-right"> <button type="button" class="button number-down">-</button> <input type="text" value="20" size="4" class="input-unstyled" data-number-options='{"min":15,"max":30,"increment":0.5,"shiftIncrement":5,"precision":0.25}'> <button type="button" class="button number-up">+</button> </span>
Set the value of a number input
@param number value the value to set
Increment/decrement the value of a number input
@param boolean up true if the value should be incremented, false for decremented
@param boolean shift whether to use shiftIncrement or not (optional, default: false)
This is an example datepicker using the external plugin glDatePicker:
<span class="input"> <span class="icon-calendar"></span> <input type="text" class="input-unstyled datepicker" value=""> </span>
To activate the datepicker, use this code:
$('.datepicker').glDatePicker({ zIndex: 100 });
For more details on the plugin and its use, go to http://code.gautamlad.com/glDatePicker/.