I want to change input value after ajax success, I do next:
At the top of function I use:
var input = document.getElementById("input_id").value;
Later on ajax success I tried next but doesn't work:
input = 'test value';
What I am doing wrong?