About 1,170,000 results
Open links in new tab
  1. html - Multiple lines of input in - Stack Overflow

    May 1, 2014 · The width and height make the box to be bigger, but the user can enter text all (s)he wants yet it fills one line only. How do I make the input more like a textarea? html

  2. Wrapping text inside input type="text" element HTML/CSS

    @Pekka웃 not that it is relevant, but some reasons include: we cannot use html5 validation on textareas; we cannot use pattern constraints to validate textareas; a textarea is an unnecessary synonym for an input type=text (it is an input that is type text!) which means twice the styling, etc, etc. In short there are many reasons.

  3. How can the size of an input text box be defined in HTML?

    Sep 25, 2011 · Here is an HTML input text box: <input type="text" id="text" name="text_name" /> What are the options to define the size of the box?

  4. How do I get the value of text input field using JavaScript?

    Jul 19, 2012 · //creates a listener for when you press a key window.onkeyup = keyup; //creates a global Javascript variable var inputTextValue; function keyup(e) { //setting your input text to the global Javascript Variable for every key press inputTextValue = e.target.value; //listens for you to press the ENTER key, at which point your web address will ...

  5. How do I make the text box bigger in HTML/CSS? - Stack Overflow

    If you want to make them a lot bigger, like for multiple lines of input, you may want to use a textarea tag instead of the input tag. This allows you to put in number of rows and columns you want on your textarea without messing with css (e.g. <textarea rows="2" cols="25"></textarea> ).

  6. html - How to define a default value for "input type=text" without ...

    Setting an HTML text input box's "default" value. Revert the value when clicking ESC. 46.

  7. javascript - How do I put a clear button inside my HTML text input …

    Better Approach: Use a <form> + <input type="reset"> ⭐️. The most reliable, future-proof, cross-browser approach is to use a form with an explicit <input type="reset"/> element nearby to allow clearing the Search form with a button.

  8. css - Background color in input and text fields - Stack Overflow

    Mar 22, 2016 · The best solution is the attribute selector in CSS (input[type="text"]) as the others suggested. But if you have to support Internet Explorer 6 , you cannot use it ( QuirksMode ). Well, only if you have to and also are willing to support it.

  9. how do you increase the height of an html textbox

    Jul 20, 2009 · Increasing the font size on a text box will usually expand its size automatically. <input type="text" style="font-size:16pt;">

  10. How to get text of an input text box during onKeyPress?

    Jul 6, 2012 · I am trying to get the text in a text box as the user types in it (jsfiddle playground): function edValueKeyPress() { var edValue = document.getElementById("edValue"); var s = edValue.

Refresh