(function () { var example = '1,22'.split(','); alert(example[0] + ' - ' + example[1]); })();
var arr = "1,22".split(","); alert(arr);
(function() { var t = "1,22"; var firstNum = parseFloat(t); var secondNum = t.replace(firstNum+',',''); alert(firstNum); alert(secondNum); })();