I have an HTML5 input field that displays a clear button with an "x" in the webkit browser when there are characters in the field. The problem is that when the field is filled with characters, they will work after the x button until they reach the right side of the input before they are scrolled on the left side of the input.
I want to determine the width of the input area in which characters can appear. How is this done in the cross browser itself? (I donโt need the x buttons in all browsers, but I donโt mind them when they appear. I just need to determine the area in which the input is accessible for visible characters, so they start to scroll left until they leave the x buttons)
source share