I am using secondary input with hidden visibility to take the text initial width of primary input. So secondary input is something like ruler to the primary input.
var ruler = el.cloneNode(true); //"el" is primary input ruler.style.visibility = "hidden"; ruler.style.width = "0px"; document.body.appendChild(ruler); display: none property didn't work properly. So now I am asking you how to add input with no visibility, no taking space but still with scrollWidth, I want it to be backwards compatible with IE6, maybe all you have to tell me are properties that are making text input takin space so that would be a second answer title. Thank you for helping me... 😊
display: nonedidn't work properly". What exactly didn't work?