$('#bannerAbc tr td .scroller div.checkbox[id="' + $('#hdnfieldstring').val().trim().split(',')[i] + '"]').each(function () {
$(this)[0].className = $(this)[0].className + " checked";
})
hdnfieldstring has values like 'abc\xyz, edc\qaz' each of the value being div id. The above code works for id without \ in them, but does not work of the sample data i provided above. Can you please help
Backslash has to be escaped, so change one backslash to two backslashes.