{"id":1359,"date":"2016-05-15T08:04:48","date_gmt":"2016-05-15T08:04:48","guid":{"rendered":"http:\/\/box.jharaphula.com\/?p=1359"},"modified":"2025-06-01T01:37:21","modified_gmt":"2025-06-01T07:07:21","slug":"jquery-string-functions","status":"publish","type":"post","link":"https:\/\/jharaphula.com\/jquery-string-functions\/","title":{"rendered":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)"},"content":{"rendered":"<p>Strings are a fundamental data type in programming, and manipulating them efficiently is crucial for web development. jQuery, a fast and concise JavaScript library, simplifies string operations by providing built-in methods and utilities. While jQuery itself does not introduce new string functions, it leverages JavaScript\u2019s native string methods and enhances DOM manipulation, making string handling more intuitive. This article explores common string operations in jQuery, their applications, and best practices.<\/p>\n<p>I remember those day when I am a fresher to programming. To complete my assignments related to string operations I always take help from Google. Sometime to find out a Syntax or Sometime for an Examples. In my view string operations are little bit confusing to freshers. During programming there are several possibilities to do with a string. Some of them are String Concatenation, Finding the position of a Character in a String, Split or retrieve few part of the String.<\/p>\n<p>Let me explain a senario here where you need string operation. Assume from your database you are fetching product descriptions for each products in a HTML page. During this you don&#8217;t want to show whole the product description texts. As per the customer you need to show first 40 charecters from product description string. In this case you need to go for string operations using string functions like substr or substring to extract a part of the string.<\/p>\n<h2>List of JQuery String Functions<\/h2>\n<p>In this session for <a href=\"https:\/\/jharaphula.com\/top-jquery-interview-questions-with-answers\/\" target=\"_blank\" rel=\"noopener noreferrer\">beginner of Jquery<\/a> to make their journey easier I am explaining all the Jquery String Functions in details. The programming language I used here is Jquery. But keep remember theoretically fundamentals of String Operations are same for all languages. In implementation only Syntax&#8217;s are differ.<\/p>\n<h2>charAt(n)<\/h2>\n<p>In a String array to know the Character of a specific index we use charAt() function. Let&#8217;s take an example you have a string &#8220;THIS IS A TABLE.&#8221;. In this String if I want to know the Character of index 3 charAt() function can did that. Look the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr = &quot;THIS IS A TABLE.&quot;;\r\nvar ch = myStr.charAt(3);<\/pre>\n<p><em>Output will be<\/em> : S<\/p>\n<p>charAt() function accepts integer value as the param &amp; returns String Character. charAt(n) calculates index starting from 0.<\/p>\n<h2>String Function\u00a0charCodeAt(n)<\/h2>\n<p>charCodeAt() works similarly like chatAt() function. The only difference is while charAt() returns Character of a specific index charCodeAt() returns Unicode of the Character. Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr = &quot;THIS IS A TABLE.&quot;;\r\nvar ch = myStr.charCodeAt(1);<\/pre>\n<p><em>Output will be<\/em> : 72<\/p>\n<p>72 is the Unicode for Capital H. charCodeAt() accepts integer as the param &amp; returns Unicode value.<\/p>\n<h2>concat(string1, string2, .., stringN)<\/h2>\n<p>String Concatenation is a very common used String operation. Let&#8217;s take a case where in two variables you are getting name of a person. First Name &amp; Last Name. In this case to display the whole name we required to do string Concatenation operation. Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var strFirstName = &quot;Biswabhusan &quot;;\r\nvar strLastName = &quot;Panda&quot;;\r\nvar wlcmMsg = &quot;You are welcome!&quot;;\r\nvar ch = strFirstName.concat(strLastName, &quot; &quot;, wlcmMsg);<\/pre>\n<p><em>Output will be<\/em> : Biswabhusan Panda You are welcome!<\/p>\n<p>Using Jquery concat() method (<em>Originally derived from JavaScript<\/em> ) you can concatenate n number of strings. This method accepts n number of strings as parameters. To apply this method choose the first string variable &amp; then concatenate others.<\/p>\n<h2>fromCharCode(n1, n2, &#8230;, nX)<\/h2>\n<p>Refer to the method name fromCharCode() it Converts Unicode value to Character. This is a static method of String object. To use this method you can use String.fromCharCode(). Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var ch = String.fromCharCode(67);<\/pre>\n<p><em>Output will be<\/em> : C<\/p>\n<p>This function accepts n number of Unicode values.<\/p>\n<h2>String Function\u00a0indexOf(searchvalue, [start])<\/h2>\n<p>indexOf() method returns the position of a specific value in a string. It return -1 if the value not found in string. While checking the value in string this method considers uppercase &amp; lowercase characters. Using this method we can know whether a specific word exist in the string or not. Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;Hello, You are welcome to the my blog.&quot;;\r\nvar ch=myStr.indexOf(&quot;welcome&quot;);<\/pre>\n<p><em>Output will be<\/em> : 14<\/p>\n<p>indexOf() accepts 2 parameters. First parameter is the keyword you want to search in the string. Second parameter is from which index you want to search rest of the string. By default this is 0. 0 means you are searching the string from the beginning.<\/p>\n<h2>lastIndexOf(searchvalue, [start])<\/h2>\n<p>lastIndexOf() method work in similar fashion of indexOf() method. The only difference is it shows the searched value position at the last occurrence of the string. For an example if in a String &#8220;welcome&#8221; appears two times lastIndexOf() method returns the 2nd occurrence of welcome. If searched value not exist in the string it returns -1. This is case sensitive. Welcome is not equal to welcome. While returning the index it counts from the beginning of the string.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;This is Biswabhusan Panda, You can only Call Biswabhusan.&quot;;\r\nvar ch=myStr.lastIndexOf(&quot;Biswabhusan&quot;);<\/pre>\n<p><em>Output will be<\/em> : 44<\/p>\n<p>lastIndexOf() accepts 2 parameters like indexOf() method. First parameter is the keyword you want to search in the string. Second parameter is from which index you want to search rest of the string. By default this is 0. 0 means you are searching the string from the beginning.<\/p>\n<h2>substr(start, [length])<\/h2>\n<p>substr() string function used to retrieve part of a string. This function accepts 2 parameters start &amp; length in integer value. Start says from which index you want the part of the string. Length is the number of characters you want from the start index. Let&#8217;s take an example. I have a string &#8220;My Car is blue.&#8221;. In this string if I am applying substr(2, 3) it will return Car.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;My Car is blue.&quot;;\r\nvar ch=myStr.substr(2, 3);<\/pre>\n<p><em>Output will be<\/em> : Car<\/p>\n<h2>Popular String Function substring(from, [to])<\/h2>\n<p>substring() works similarly like substr(). But while substr() accepts Start &amp; Length as the parameters substring() accepts From &amp; To. From is the index from which you want your part of the string. To is the index upto which you want to retrieve in part of the string. Let&#8217;s take the same example as shown in substr. You can see the difference while substr(2, 3) return &#8220;Car&#8221; substring(2, 3) will return &#8220;C&#8221;.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;My Car is blue.&quot;;\r\nvar ch=myStr.substring(2, 3);<\/pre>\n<p><em>Output will be<\/em> : C<\/p>\n<h2>toLowerCase()<\/h2>\n<p>toLowerCase() converts uppercase letters to lowercase. If in a string you have mix of upper &amp; lower case letter this function will return that string in lowercase only.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;Biswabhusan&quot;;\r\nvar ch = myStr.toLowerCase();<\/pre>\n<p><em>Output will be<\/em> : biswabhusan<\/p>\n<h2>toUpperCase()<\/h2>\n<p>toUpperCase() converts lowercase letters to uppercase. If in a string you have mix of upper &amp; lower case letter this function will return that string in uppercase only.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;Biswabhusan&quot;;\r\nvar ch = myStr.toUpperCase();<\/pre>\n<p><em>Output will be<\/em> : BISWABHUSAN<\/p>\n<h2>match(regexp)<\/h2>\n<p>match() function accepts regular expression &amp; returns the matches as an Array Object. Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;The rain in SPAIN stays mainly in the plain&quot;;\r\nvar ch=myStr.match(\/ain\/g);<\/pre>\n<p><em>Output will be<\/em> : ain, ain, ain<\/p>\n<h2>replace(searchvalue, newvalue)<\/h2>\n<p>replace() function is one more <a href=\"https:\/\/jharaphula.com\/rc2-md5-byte-128-cryptography-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">very useful function<\/a> of string operation. In-case in a string if you want to replace some characters with another characters this function helps. It accepts 2 parameters. First parameter is the search value &amp; second parameter is the replacement for search value. Look at the example below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr=&quot;This is an awesome Blog.&quot;;\r\nvar ch = myStr.replace(&quot;awesome &quot;,&quot;interesting &quot;);<\/pre>\n<p><em>Output will be<\/em> : This is an interesting Blog.<\/p>\n<h2>search(searchvalue)<\/h2>\n<p>search() method help to search a specific value in a string. If search value exists in the string it returns the index or else if string doesn&#8217;t contain the value it returns -1.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr = &quot;Welcome to my Blog!&quot;;\r\nvar ch = myStr.search(&quot;my&quot;);<\/pre>\n<p><em>Output will be<\/em> : 11<\/p>\n<h2>slice(start, [end])<\/h2>\n<p>slice() method extract part of the string in a new string. It accepts 2 parameters start &amp; end. Depending upon start &amp; end value it returns the new string.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr = &quot;Visit Jquery Blog!&quot;;\r\nvar n = myStr.slice(6, 12);<\/pre>\n<p><em>Output will be<\/em> : Jquery<\/p>\n<h2>String Function\u00a0split(separator, [limit])<\/h2>\n<p>split() method used to divide a string from a specific character. It returns sub-strings in array. Split method accepts 2 parameters. Separator &amp; limit. In separator if you use empty char &#8220;&#8221; it will divide all characters individually as a sub-string. Limit is always an integer value which specifies the number of splits.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var myStr = &quot;How are you doing today?&quot;;\r\nvar arr = myStr.split(&quot; &quot;,3);<\/pre>\n<p><em>Output will be<\/em> : How,are,you<\/p>\n<h2>Best Practices<\/h2>\n<p>1. Use Native JavaScript Methods \u2013 jQuery does not replace JavaScript\u2019s string functions.<br \/>\n2. Sanitize Inputs \u2013 Prevent XSS by escaping user-generated content.<br \/>\n3. Optimize Loops \u2013 Avoid excessive string operations in loops.<br \/>\n4. Leverage ES6 Features \u2013 Use template literals for cleaner code.<\/p>\n<h2>Conclusion<\/h2>\n<p>jQuery enhances string manipulation by simplifying DOM interactions, but it relies on JavaScript\u2019s native string methods. Understanding these functions\u2014such as `substring()`, `trim()`, and regex\u2014enables efficient text processing in web applications. By combining jQuery\u2019s DOM utilities with JavaScript\u2019s string capabilities, developers can build dynamic, user-friendly interfaces. Mastering these techniques ensures robust and maintainable code for modern web development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Strings are a fundamental data type in programming, and manipulating them efficiently is crucial for web development. jQuery, a fast and concise JavaScript library, simplifies&#8230;<\/p>\n","protected":false},"author":3,"featured_media":2077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[36420,38713,38711,38714,38712,38715],"class_list":["post-1359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn-jquery-with-examples","tag-function-in-jquery","tag-indexof","tag-jquery-string-functions","tag-lastindexof","tag-substr","tag-touppercase"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)<\/title>\n<meta name=\"description\" content=\"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jharaphula.com\/jquery-string-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)\" \/>\n<meta property=\"og:description\" content=\"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jharaphula.com\/jquery-string-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"OneStop Shop\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tajinweb\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-15T08:04:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-01T07:07:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"846\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nibedita Panda\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nibedita Panda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/\"},\"author\":{\"name\":\"Nibedita Panda\",\"@id\":\"https:\/\/jharaphula.com\/#\/schema\/person\/129213d91cdcccd8f9396797c56e7dc3\"},\"headline\":\"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)\",\"datePublished\":\"2016-05-15T08:04:48+00:00\",\"dateModified\":\"2025-06-01T07:07:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/\"},\"wordCount\":1618,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/jharaphula.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg\",\"keywords\":[\"Function in JQuery\",\"IndexOf\",\"JQuery String Functions\",\"lastIndexOf\",\"Substr\",\"toUpperCase\"],\"articleSection\":[\"Learn JQuery with Examples\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/jharaphula.com\/jquery-string-functions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/\",\"url\":\"https:\/\/jharaphula.com\/jquery-string-functions\/\",\"name\":\"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)\",\"isPartOf\":{\"@id\":\"https:\/\/jharaphula.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg\",\"datePublished\":\"2016-05-15T08:04:48+00:00\",\"dateModified\":\"2025-06-01T07:07:21+00:00\",\"description\":\"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...\",\"breadcrumb\":{\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jharaphula.com\/jquery-string-functions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage\",\"url\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg\",\"contentUrl\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg\",\"width\":1280,\"height\":846,\"caption\":\"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, ...)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jharaphula.com\/jquery-string-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jharaphula.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jharaphula.com\/#website\",\"url\":\"https:\/\/jharaphula.com\/\",\"name\":\"OneStop Shop\",\"description\":\"Blog for SEO Guest Posting, Digital Marketing or Home Remedies\",\"publisher\":{\"@id\":\"https:\/\/jharaphula.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jharaphula.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jharaphula.com\/#organization\",\"name\":\"OneStop Shop\",\"url\":\"https:\/\/jharaphula.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jharaphula.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2023\/10\/logo.jpg\",\"contentUrl\":\"https:\/\/jharaphula.com\/wp-content\/uploads\/2023\/10\/logo.jpg\",\"width\":409,\"height\":91,\"caption\":\"OneStop Shop\"},\"image\":{\"@id\":\"https:\/\/jharaphula.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tajinweb\",\"https:\/\/x.com\/guestpostingopp\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/jharaphula.com\/#\/schema\/person\/129213d91cdcccd8f9396797c56e7dc3\",\"name\":\"Nibedita Panda\",\"description\":\"Mrs. Nibedita is a housewife. She is passionate about to write various information's depending upon the growing market trend. In our unit she takes care of many major releases. Her contribution is most valued for us.\",\"sameAs\":[\"https:\/\/jharaphula.com\"],\"url\":\"https:\/\/jharaphula.com\/author\/nibeditap\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)","description":"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jharaphula.com\/jquery-string-functions\/","og_locale":"en_US","og_type":"article","og_title":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)","og_description":"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...","og_url":"https:\/\/jharaphula.com\/jquery-string-functions\/","og_site_name":"OneStop Shop","article_publisher":"https:\/\/www.facebook.com\/tajinweb","article_published_time":"2016-05-15T08:04:48+00:00","article_modified_time":"2025-06-01T07:07:21+00:00","og_image":[{"width":1280,"height":846,"url":"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg","type":"image\/jpeg"}],"author":"Nibedita Panda","twitter_misc":{"Written by":"Nibedita Panda","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#article","isPartOf":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/"},"author":{"name":"Nibedita Panda","@id":"https:\/\/jharaphula.com\/#\/schema\/person\/129213d91cdcccd8f9396797c56e7dc3"},"headline":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)","datePublished":"2016-05-15T08:04:48+00:00","dateModified":"2025-06-01T07:07:21+00:00","mainEntityOfPage":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/"},"wordCount":1618,"commentCount":1,"publisher":{"@id":"https:\/\/jharaphula.com\/#organization"},"image":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg","keywords":["Function in JQuery","IndexOf","JQuery String Functions","lastIndexOf","Substr","toUpperCase"],"articleSection":["Learn JQuery with Examples"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jharaphula.com\/jquery-string-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jharaphula.com\/jquery-string-functions\/","url":"https:\/\/jharaphula.com\/jquery-string-functions\/","name":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, ...)","isPartOf":{"@id":"https:\/\/jharaphula.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage"},"image":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg","datePublished":"2016-05-15T08:04:48+00:00","dateModified":"2025-06-01T07:07:21+00:00","description":"In programming to make String operation easier JQuery provides list of in-built String Functions like Replace, Substr, IndexOf, lastIndexOf, Substring, ...","breadcrumb":{"@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jharaphula.com\/jquery-string-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#primaryimage","url":"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg","contentUrl":"https:\/\/jharaphula.com\/wp-content\/uploads\/2016\/05\/jquery.jpg","width":1280,"height":846,"caption":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, ...)"},{"@type":"BreadcrumbList","@id":"https:\/\/jharaphula.com\/jquery-string-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jharaphula.com\/"},{"@type":"ListItem","position":2,"name":"JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)"}]},{"@type":"WebSite","@id":"https:\/\/jharaphula.com\/#website","url":"https:\/\/jharaphula.com\/","name":"OneStop Shop","description":"Blog for SEO Guest Posting, Digital Marketing or Home Remedies","publisher":{"@id":"https:\/\/jharaphula.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jharaphula.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jharaphula.com\/#organization","name":"OneStop Shop","url":"https:\/\/jharaphula.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jharaphula.com\/#\/schema\/logo\/image\/","url":"https:\/\/jharaphula.com\/wp-content\/uploads\/2023\/10\/logo.jpg","contentUrl":"https:\/\/jharaphula.com\/wp-content\/uploads\/2023\/10\/logo.jpg","width":409,"height":91,"caption":"OneStop Shop"},"image":{"@id":"https:\/\/jharaphula.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tajinweb","https:\/\/x.com\/guestpostingopp"]},{"@type":"Person","@id":"https:\/\/jharaphula.com\/#\/schema\/person\/129213d91cdcccd8f9396797c56e7dc3","name":"Nibedita Panda","description":"Mrs. Nibedita is a housewife. She is passionate about to write various information's depending upon the growing market trend. In our unit she takes care of many major releases. Her contribution is most valued for us.","sameAs":["https:\/\/jharaphula.com"],"url":"https:\/\/jharaphula.com\/author\/nibeditap\/"}]}},"_links":{"self":[{"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/posts\/1359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/comments?post=1359"}],"version-history":[{"count":0,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/posts\/1359\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/media\/2077"}],"wp:attachment":[{"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/media?parent=1359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/categories?post=1359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jharaphula.com\/wp-json\/wp\/v2\/tags?post=1359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}