I want to replace string data with another string data.
I have tried to do so with the following code.
$('#btnchkProduct').click(function () {
var stringfirst="hi this is first data";
var stringsecound="this is another data";
var finaldata = string.replace(stringfirst , stringsecound );
alert(finaldata );
});
/gto replace all , ex:mystring.replace(/oldstring/g,'newstring')newsvariable come from? And thestringvariable?