This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<label>Text</label> | |
<input type="text" class="form-control" | |
required // Input validate | |
disabled // Input not validate | |
data-smk-* // Option name | |
> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form | |
data-smk-validate | |
data-smk-validate-lang=“es” | |
data-smk-validate-icon="glyphicon-asterisk" | |
> | |
<!-- Inputs here --> | |
. | |
. | |
. | |
<button type="submit" class="btn btn-default">Submit</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( $('#form').smkValidate({ | |
lang:'es', // Default value "en" | |
icon: 'glyphicon-asterisk' // Default value "glyphicon-remove-sign" | |
}) ){ | |
// Code here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( $.smkEqualPass('#pass1', '#pass2', 'es') ){ | |
// Code here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<label for="text">Number</label> | |
<input type="text" class="form-control" smk-type="number" smk-min="2015" smk-max="2020" required> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<label for="text">Number</label> | |
<input type="text" class="form-control" smk-type="decimal" required> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var float = $.smkFloat('1,0000.00'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<label for="text">Alphanumeric</label> | |
<input type="text" class="form-control" smk-type="currency" required> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#panel').smkPanel(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#fullscreen').smkFullscreen(); |