I am having a string

```
        var countries = india*australia*pakistan*...
        var replace = countries.replace("*",",");

```

then it will give the string as

```
        replace = india,australia*pakistan*...

```

I want to replace all \* with , .how can i do that with jquery or javascript