I'm trying to do it
$('input').val($('input').val()+"^2");
so each input field on the page (I have only one field) will have two additional letters ^ 2
it is strange that he adds only 2 and ignores the ^ character. any idea why this weird behavior is happening?
EDIT: The problem was that there was another part in the code that removed all characters from the input field after they were inserted. So I changed it to ignore this character. Thanks guys.
source share