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 :: javascript object to array 
Javascript :: react google map 
Javascript :: how to make back button react 
Javascript :: expose deployment nodeport command 
Javascript :: javascript compare values of two arrays 
Javascript :: react pass props to child 
Javascript :: how to get selected value of a dropdown menu in reactjs 
Javascript :: jquery body remove class 
Javascript :: loop through an array in js 
Javascript :: stop window.setinterval javascript 
Javascript :: javascript extract date from string 
Javascript :: light font color to dark background using javascript 
Javascript :: setting up fontawesome with react project 
Javascript :: tribonacci sequence javascript 
Javascript :: tick.json code 
Javascript :: run onclick function once js 
Javascript :: copy to clipboard reatjs 
Javascript :: can promise is going to be handle asynchronously 
Javascript :: moment get day 
Javascript :: mongodb replace string regex 
Javascript :: discord token 
Javascript :: javascript pre increment and post increment 
Javascript :: how to rotate an array in javascript 
Javascript :: validationResult is not defined 
Javascript :: js sort number array 
Javascript :: gesture handling with react native expo 
Javascript :: Material-ui add comment icon 
Javascript :: begins_with node js AWS dynamodb sort key 
Javascript :: puppeteer headless 
Javascript :: javascript sum of arguments 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =