I have an input field and I want to append its text while typing in it and persisting the previous value in it
Following is the code
<input type="text" id="txt1" name="type_name" value="Value1-" onchange="dosomething()">
What I want is when the user starts typing it the starting text of input field should remain there which is "Value1-" and append the text in it like "Value1-3433".
I hope you get my point a little help on this will be appreciated.