Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
Input Element - Align Content that Overflows Left on Blur

If you have a text input of a certain length and you set the content in it longer than the area, how can you have the content always align left in the text box on blur? Even if you manually go to the cell, scroll to the right side and then leave.

<input type="text" style="width:100px" value="356 Must Read Number Ave New York, NY">

You should always be able to read "365 Must ..." in the beginning of the input? text-align:left; doesn't seem to work.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

let el = document.querySelector("input") 
el.addEventListener("focusout",function (e) {
    el.scroll(0,0)  //first one x-coord, second one y-coord
})

Element.scroll() might be helpful

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!