About 626,000 results
Open links in new tab
  1. javascript - How do I make an expanding textbox? - Stack Overflow

    Dec 12, 2015 · Here is my solution using only vanilla javascript. Tested to work in Chrome, Firefox & IE8 and up. On load, or whack it in a function: CSS & HTML: Start asking to get answers. …

  2. Auto Expand Input Width Based on Text Length — CodePel

    Feb 11, 2025 · This tutorial provides a step-by-step guide to implementing a JavaScript code snippet that enables automatic expansion of input field and textarea widths based on the …

  3. How to Make an Input Field Grow/Shrink as you Type

    May 30, 2020 · In this article I'm going to show you a simple trick to make an input field grow and shrink as you type with some little CSS and JavaScript. For the markup we're going to need an …

  4. Make HTML Text Input Field Grow as I Type in JavaScript

    Sep 12, 2020 · Learn how to make an HTML text input field grow dynamically as you type using JavaScript. Enhance user experience with responsive input fields.

  5. How to Create an Expanding Search Input with HTML, CSS, and JavaScript

    Jan 25, 2024 · One such component is a search input box. This tutorial will cover how to create an expanding search input; one which expands when a user clicks on a search icon. You’ll find …

  6. javascript - make html text input field grow as I type? - Stack Overflow

    Here's a method that worked for me. When you type into the field, it puts that text into the hidden span, then gets its new width and applies it to the input field. It grows and shrinks with your …

  7. Expand input text boxes on the form - Javascript - Tek-Tips

    Oct 26, 2005 · What is the best way to allow user to expand additional input text fields to the HTML form for additional information? Want more? Thanks! The best way might include using …

  8. Expanding Text Areas Made Elegant - A List Apart

    Nov 1, 2011 · An expanding text area is a multi-line text input field that expands in height to fit its contents. This UI element is commonly found in both desktop and mobile applications, such as …

  9. Creating an expandable textbox with state and actions

    Jan 27, 2021 · In this guide, we will go over how to create an expandable textbox with state and actions. This is a great option if you want your text partially showing before expanding. If you …

  10. JavaScript methods to create and manipulate a textbox

    May 28, 2021 · First, you need to use the createElement("input") method of the document object to create an <input> element. Then, you need to set the type attribute of the <input> element …

  11. Some results have been removed
Refresh