replace not working in IE8

514 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 answers

0
Appu On BEST ANSWER

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