Done it by my self. Here is the answer :
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
</head>
<body>
<script>
var strPrev1 = '';
var strScore1 = '';
$(document).ready(function()
{
$('#input1a').keyup(function(e)
{
if ( $("#input1a").val() == '' ) { $("#input0a").val(''); }
// Filter input text to accept only numbers , arrow movement, backspace, delete
if ((e.keyCode == 8) || (e.keyCode == 46) || (e.keyCode == 16) || (e.keyCode >= 35 && e.keyCode <= 40) || (e.keyCode >= 48 && e.keyCode <= 57) || (e.keyCode >= 96 && e.keyCode <= 105))
{
if ((e.keyCode >= 48 && e.keyCode <= 57) || (e.keyCode >= 96 && e.keyCode <= 105) || (e.keyCode == 8) || (e.keyCode == 46))
{
$("#input1a").val().replace("-","");
strScore1 = $("#input1a").val().match(/.{1,2}/g);
$("#input0a").val(strScore1.join().replace(/,/g , "-"));
}
strPrev1 = $("#input1a").val();
}
else
{
// replace input text value with previous accepted
$("#input1a").val(strPrev1);
}
});
});
</script>
RESULT : <input name="input0a" id="input0a" type="text" style="width: 100%;" disabled>
SOURCE : <input name="input1a" id="input1a" type="text">
</body>
</html>
Use the .match(/.{1,2}/g) then join() it. finally, .replace(/,/g , "-")) the inputed string.