I have a text box which contains numbers like:
,541,54,457
and the function below to remove the number if passed to it. The problem is if they pass the number 54 then it will remove the first instance 54(1). How do you get it to look just for that number.
function addProductArea(id)
{
var myString;
var pattern = id;
var newString = myString.replace(pattern,""
PA.detailsProduct.value=newString ;
}