Hello!
Tell me, please: The input field is given.
<input id="sum" type="text" onChange="add_r('р.')" />
In the input field, should always be the letter r. (rubles). When you enter the amount in this field, the letter r. must be placed after the numbers.
Here is the javascript code:
function add_r(sum) { a = document.getElementById('sum'); a.value = a.value + sum; }
In the above example, the letter "p" is added upon completion of the input, and it is necessary that it be there permanently. This example is written in pure javascript, but must be implemented on jQuery.
Tell me, please, how to implement it on jQuery. My knowledge is not enough, but I am actively learning javascript and jQuery.
I hope for your help.
Sincerely, Alexander