How is change normal number formatting to date formatting in here (http://jsfiddle.net/prL83/)?
typed date from right to left dir="rtl" in this format, YYYY/MM/DD.
- first typed the day(
DD) - secend typed the month(
MM) -
thrid typed the year(
YYYY)$(‘.find_input’).delegate(“input.numeric:text”, ‘keyup’, function () {
$val = $(this).val().match(/[0-9]/g).reverse().join(“”).match(/[0-9]{1,3}/g).join(“,”).match(/./g).reverse().join(“”);
$(this).val($val)
});
Will this work?