replace not working in IE8

528 Views Asked by At

Hide column header text placed in textbox but text doesn't remove when show the column in ie8 itself

  $("#hideColumns").html($("#hideColumns").html().replace(selectedItem + "\n", ""));
1

There are 1 best solutions below

0
On BEST ANSWER

$("#hideColumns").val($("#hideColumns").val().replace(selectedItem + "\n", ""));