About 331,000 results
Open links in new tab
  1. How to check string length with JavaScript - Stack Overflow

    Jun 15, 2012 · That's the function I wrote to get string in Unicode characters: function nbUnicodeLength(string){ var stringIndex = 0; var unicodeIndex = 0; var length = string.length; …

  2. javascript - Count textarea characters - Stack Overflow

    on the element change <textarea onKeyUp=" to <textarea onKeyDown=" as sometimes the first char is not counted – in my case I have several textareas in the same page and used your …

  3. javascript - How do you get the length of a string using jQuery ...

    UTF-16, the string format used by JavaScript, uses a single 16-bit code unit to represent the most common characters, but needs to use two code units for less commonly-used characters, so …

  4. javascript - Check input value length - Stack Overflow

    May 27, 2018 · How to get input text length and validate user in javascript. 5. checking text field value length. 0.

  5. How to trim a string to N chars in Javascript? - Stack Overflow

    Mar 25, 2017 · How can I, using Javascript, make a function that will trim string passed as argument, to a specified length, also passed as argument. For example: var string = "this is a …

  6. Display only 10 characters of a long string? - Stack Overflow

    Aug 5, 2010 · How do I get a long text string (like a querystring) to display a maximum of 10 characters, using JQuery? Sorry guys I'm a novice at JavaScript &amp; JQuery :S Any help …

  7. textbox - Calculate text width with JavaScript - Stack Overflow

    Sep 23, 2008 · Nice solution. I've wrapped a couple of other methods around Domi's answer so that I can - Get a (potentially) truncated string with ellipsis (...) at the end if it won't fit in a given …

  8. Get string length in pixels using JavaScript - Stack Overflow

    Jul 22, 2016 · You can create some inline element (span, for example), set your string as element's content (innerHTML), insert it into document (append to some element) and get it's …

  9. How to check string length in JavaScript? - Stack Overflow

    Oct 22, 2015 · To Get the string length of a value for example: var value="This is a string"; var string_length=value.length; /*The string length will result to 16*/ Hope this helps

  10. Character limit of a javascript string variable - Stack Overflow

    Nov 17, 2015 · The ECMAScript Standard ECMA-262 (6th Edition, June 2015) says. 6.1.4 The String Type. The String type is the set of all ordered sequences of zero or more 16-bit …

Refresh