 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are jQuery string methods?
jQuery string methods helps in string manipulation and makes your work easier while using strings. String methods find the length of the string, a string in a string, extract string parts, etc. jQuery is a JavaScript library, so using JavaScript String functions in it is perfectly fine.
Example
You can try to run the following code to learn how to find the length of a string with string method −
<!DOCTYPE html> <html> <body> <p>Finding the number of characters in "Tutorialspoint"</p> <button onclick="myFunc()">Get Length</button> <p id="example"></p> <script> function myFunc() {     var str1 = "Tutorialspoint";     var num = str1.length;     document.getElementById("example").innerHTML = num; } </script> </body> </html>Advertisements
 