<SCRIPT src="jquery-1.5.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="jquery.metadata.js" type=text/javascript></SCRIPT>
<SCRIPT src="autoNumeric-1.7.4.js" type=text/javascript></SCRIP
$('selector').autoNumeric({options});
Selector - is any valid jQuery selector
options - can be passed here but are not required
// example uses the selector "input" with the class "auto" & no options passed
jQuery(function($) {
$('input.auto').autoNumeric();
});
// example uses the selector "input" with the class "auto" & with options passed
// See details below on allowed options
jQuery(function($) {
$('input.auto').autoNumeric({aSep: '.', aDec: ','});
});
// input tag for the above
<input id="some ID" value="" type="text" class="auto" size="25" />
Quote:
untuk info lebih lengkap ketik:http://www.decorplanit.com/plugin/