var TitleVal = encodeURIComponent($("[title='Title Required Field']").val()); // Title has value "car & bus"
//decodeURIComponent(TitleVal);
var allOptions = document.querySelectorAll("[title='Name'] option"); //Name is other column,
[].some.call(allOptions, function(option) {
if (option.innerHTML == TitleVal) {
option.selected = "selected";
return true;
}
});
how would I make the symbol in string as normal string?