I stuck the issue for skipping row using jQuery :not
. Here I adding rows dynamically and have some <tr>
have one class addBgColor
. Once we click on submit
I would like to convert all table data to the xml
strucuted data except the row contains "addBgColor"
class, here is the code what I tried, please help me
var elements = $(".multipleData tr:not(.addBgColor) td input:checked");
var size = elements.size();
bodyRowSet = bodyRowSet + "<count>" + size + "</count>";
elements.each(function() {
var tdValue = $(this).parent().next('td').html().trim();
bodyRowSet = bodyRowSet + "<row><eventid>";
bodyRowSet = bodyRowSet + tdValue;
bodyRowSet = bodyRowSet + "</eventid></row>";
});
tr:not(.addBgColor)
does what you want..addBgColor
selector in the:not()
?