Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

remove comma in jquery

var myStr = "hii, hello, welcome";
myStr = myStr.replace(/,/g, "");
console.log(myStr)

// OUTPUT
hii hello welcome
Comment

remove comma from string jquery

<html lang="en">
<head>
    <title>Jquery remove comma from string - NiceSnippets.com</title>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(document).ready(function() {
            var myStr = "Welcome, To NiceSnippets.com";
            myStr = myStr.replace(/,/g, "");
            alert(myStr);
        });
    </script>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to hide scrollbar in scrollview react native 
Javascript :: Please include either "BrowserAnimationsModule 
Javascript :: how to install react router dom version 5 
Javascript :: electronjs require is not defined 
Javascript :: list all node processes 
Javascript :: jquery set attribute readonly 
Javascript :: google colab clicker 
Javascript :: jquery redirect 
Javascript :: reload page in typescript 
Javascript :: how to delay redirect in javascript 
Javascript :: jquery delay 1 second 
Javascript :: how to go to a link using javascript 
Javascript :: Use jQuery in Console 
Javascript :: media query js 
Javascript :: How disable button jquery 
Javascript :: discord.js v13 send embed 
Javascript :: mongodb query to check empty array 
Javascript :: how to check variable type jquery 
Javascript :: js loop through array backwards 
Javascript :: zip code regex 
Javascript :: javascript sleep for 1 second 
Javascript :: regex pattern for positive numbers only 
Javascript :: how to get mouse x and y in javascript 
Javascript :: br in react native 
Javascript :: add leading zeros to number javascript 
Javascript :: ejs if else 
Javascript :: unsplash api javascript example 
Javascript :: invalid host header vue 
Javascript :: document ready function 
Javascript :: react native run ipad 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =