Source

LSCR /

Filename Size Date modified Message
examples
lib
test
225 B
125 B
486 B
LSCR plugin

Changes Slovak localized-chars to numbers

Automatically converts +ľščťžýáíé into 1234567890

Licence: BSD-like 
Author: Jiri Knesl <jiri@sprintmasters.cz> (http://www.knesl.com)

Example in jQuery:

$(document).ready(function(){
	var lscr = new LSCR();
	$("input.numeric").change(function(){
		var val = $(this).val();
		$(this).val(lscr.rewrite(val));
	});
});

Example in node.js:

var LSCR = require("lib/lscr");
var lscr = new LSCR();
lscr.rewrite("ľščť")