jquery - replace character at certain position inside javascript -


this question has answer here:

if have string inside javascript function like

function somefunction(){    var mystr = "12345678911";    var maskedstr = "";        } 

how can use mystr values * maskedstr contain string like

var maskedstr = "1234567*91*";  

function somefunction(){    var mystr = "12345678911";    var maskedstr = mystr.replace("9", "*");        } 

Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -