Hi Team,
I have used the below methods for binding but it is not working for like item.
EG: if dropdownlist contains Finance,Finance Manager, Sales.
var dept = (cells[1].innerHTML).replace(/<\/?span[^>]*>/g, "");
jQuery("#drpDept").find("option:contains(" + dept + ")").each(function () {
if (jQuery(this).text().trim() == dept.trim()) {
jQuery(this).attr("selected", "selected");
}
});
$('#drpDept option').map(function () {
if ($(this).text() == dept) return this;
}).attr('selected', 'selected');
Kindly help me on this.