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
// Alert Default | |
$.smkAlert(); |
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
// Alert Warning | |
$.smkAlert({text:'Alert type "warning"', type:'warning'}); | |
// Alert Success | |
$.smkAlert({text:'Alert type "success"', type:'success'}); | |
// Alert Danger 10 seconds | |
$.smkAlert({text:'Alert type "danger" time 10 seconds', type:'danger', time: 10}); | |
// Alert Info permanent | |
$.smkAlert({text:'Alert type "info" permanent', type:'info', permanent: true}); |
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
// Confirmation | |
$.smkConfirm({text:'Are you sure?', accept:'Accept', cancel:'Cancel'}, function(e){if(e){ | |
// 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
var currency = $.smkCurrency(10000, '$'); |
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 url = $.smkGetURL(); |
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 date = $.smkDate(); |
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 date = $.smkDate({ | |
date: '30-12-2014', | |
format:'dd/MM/yyyy', | |
lang:'es' | |
}); |
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 date = $.smkDateDiff({ | |
fromDate: '09/25/2014', | |
toDate: '09/30/2014', | |
interval:'days' | |
}); |
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() ){ | |
// 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
<form> | |
<div class="form-group"> | |
<label>Text</label> | |
<input type="text" class="form-control" required> | |
</div> | |
<div class="form-group"> | |
<label>Select</label> | |
<select class="form-control" required> | |
<option value="">Select</option> | |
<option value="1">1</option> |
OlderNewer