Maybe it’s my selector syntax, I dunno. When I add everything into a single statment, everything’s added, but they can’t be selected with the jQuery selector.
If I split it up, the second append fails, but the first succeeds.
$.each($.parseJSON(msg.d) , function(i){
$("#contactsGrid").append("<tr id='contactRow." + $.parseJSON(msg.d)[i].SupplierContID + "'></tr>");
$("#contactRow." + $.parseJSON(msg.d)[i].SupplierContID).append("<td><input type='text' id='contactLastName." + $.parseJSON(msg.d)[i].SupplierContID + "' /></td>");
});
Need to be able to select dynamic controls.
Thanks in advance!
Your ID has a special character
.that needs to be escaped.However it’s probably better to do it in 1 line anyway.