$(".positive-integer").numeric({ decimal: false, negative: false }, function() { alert("Positive integers only"); this.value = ""; this.focus(); });
Więcej przykładów znajduje się tutaj i tutaj.
$(".positive-integer").numeric({ decimal: false, negative: false }, function() { alert("Positive integers only"); this.value = ""; this.focus(); });
SELECT kod FROM tabela ORDER BY kod;
0.1 0.16 0.3 10.11 10.4 10.6 10.8 11.11 11.4 1.16 11.6 1.2 12.11 12.4 (...)
SELECT kod FROM tabela ORDER BY kod::numeric;
0.1 0.16 0.3 1.16 1.2 2.17 2.4 2.5 3.4 3.9 4.10 4.4 5.8 6.10 6.16 6.4 (...)