I am collecting a textbox value from a table rows. The value of textbox is varies. I'm trying to remove the duplicate from the string. I'm looking at this accepted answer but the duplicate is still exist.
var memo = "";
$("#f_sendToPic").find('#t_obj input[class=no_memo]').each(function(index, result) {
memo +=$(this).val();
memo += "@";
});
var val_memo = $.unique(memo.split('@'));
var arr_memo = val_memo.join('|||');
alert(memo);
alert(arr_memo);
I prefer browser friendly method than performance , if it's possible.