Hi Folks
Will there be any performance issues with both the code ? Which one would be better ?
Code 1
jQuery.each($("#" + GridID).find("[type='checkbox']"), function (index, item)
{
});
Code 2:
if ($("#" + GridID).find("[type='checkbox']")) {
}
Please suggest.
Any help appreciated.

Madhanmohan DevarajanPosted Mar 28, 2017, 9:55 AM
$("#rowGridView").each(function () {
var checkBox = $(this).find("input[type='checkbox']");
if ($(checkBox).is(':checked')) {
alert("Row selected");
});
}