How to replace part of an input value in jQuery?
I've just tried this
$('#title').val($('#title').val().replace("54,",""))
and it worked so i assume that it's the way you call the element "$('input[name=ids]')", why don't you try using an id selector?
$('#ids')
$('input[name=ids]').val(function(index, value) {
return value.replace('54,', '');
});
try
replit = replit.replace("54,","");