Gets the ideal width of the input element (in pixels) that based on its value or placeholder using the measureText approach.
input
The HTMLInputElement for which to get width.
HTMLInputElement
Ideal width for the input.
Gets the ideal width of the
input
element (in pixels) that based on its value or placeholder using the measureText approach.