I\'m trying to reverse an input string
var oneway = document.getElementById(\'input_field\').value(); var backway = oneway.reverse();
but f
reverse is a function on an array and that is a string. You could explode the string into an array and then reverse it and then combine it back together though.
reverse
var str = '0123456789'; var rev_str = str.split('').reverse().join('');