About 54 results
Open links in new tab
  1. How do I get the value of text input field using JavaScript?

    Jul 19, 2012 · While I appreciate the completeness of the accepted answer, I found this answer to be of use re: accessing, in JS code, a value entered in a DOM text input element (text box). For detail, see …

  2. How to get an input text value in JavaScript - Stack Overflow

    Learn how to retrieve the value of an input text field in JavaScript with this helpful guide and examples.

  3. How to get Input type="text" in javascript - Stack Overflow

    Mar 18, 2018 · What you are trying to do is get element by tag name, "text" is not a tag name instead in your case the name of tag is "input". But instead of using tag name use id of tag to get that element.

  4. javascript - Selecting all text in HTML text input when clicked - Stack ...

    Nov 1, 2010 · 95 The previously posted solutions have two quirks: In Chrome the selection via .select () doesn't stick - adding a slight timeout resolves this issue. It's impossible to place the cursor at a …

  5. Get the value of input text when enter key pressed

    Jan 8, 2014 · Get the value of input text when enter key pressed Asked 12 years, 1 month ago Modified 1 year, 8 months ago Viewed 260k times

  6. Pure JavaScript listen to input value change - Stack Overflow

    If you need to listen to forms 'change' or 'input' event and you change inputs value via JavaScript, you can name your custom event 'change' or 'input', and it will work too.

  7. validation of input text field in html using javascript

    Sep 17, 2012 · Before I submit the form I have to verify whether all fields are filled. So far i got the javascript to check for null since different text boxes have different default value. How can I write a …

  8. How to update an input text with JavaScript? - Stack Overflow

    How to update an input text with JavaScript? Asked 15 years, 11 months ago Modified 2 years, 11 months ago Viewed 53k times

  9. How to track onchange as-you-type in input type="text"?

    In my experience, input type="text" onchange event usually occurs only after you leave (blur) the control. Is there a way to force browser to trigger onchange every time textfield content

  10. javascript - Detect all changes to a <input type="text"> (immediately ...

    437 There are many ways the value of a <input type="text"> can change, including: keypresses copy/paste modified with JavaScript auto-completed by browser or a toolbar form reset I want my …