function remove() { }
<input id="input-box"></input> <button onclick="remove()" id="remove-btn">remove</button>
I want to remove that specific letter at which cursor is placed in an input box on button click.