Ex.1
var strString= 3942_3902_0;
Replace Last 0 To -0.
Ex.2
var strString1= 942_3902_0_234_3_444_0
Replace Middle and Last 0 bold style
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ifour HirenPosted Nov 3, 2016, 2:15 AM
var str="942_3902_0_234_3_444_0";
var a=str.replace("_0","_-0");
alert(a);
}
above code helps you to make it working.
Hussain PatelPosted Oct 4, 2016, 1:42 AM
Clickthebuttontoreplace
"942_3902_0_234_3_444_0"with"942_3902_-0_234_3_444_-0"inthelineelinebelow:Posted Aug 22, 2015, 2:17 AM
Manas MohapatraPosted Aug 21, 2015, 2:26 PM