function saveData()
{
var rows = $('#deviceTable tr').length;
var toSave = "";
alert(rows);
for(var i = 0; i < rows; i ++)
{
alert('inside for loop');
if($("#saveDevName_"+(i)).attr('checked'))
{
alert('sving the data');
toSave+=$("#devName_"+(i)).text()+",";
}
}
}
($("#saveDevName_"+(i+1)).attr('checked'))— is not executed.Hence not checking the status.If statement is not executed {if($(“#saveDevName_”+(i)).attr(‘checked’))}
Plz suggest me the right approch.
Replace:
With:
More Info: