I've encountered an issue where text entered into a text field
appears in reverse order. For instance, when I type " Hi how are you "
, it displays as " UYO REA OH HI "
. How can this be resolved? I am using the silent WP theme and have tried inspecting the code without success. Any suggestions or guidance would be greatly appreciated.
$('#s').on('keyup', function() {
var reverse = $(this).val().split('').reverse().join('');
$('#s').text(reverse);
});