2011-08-11 1 views
-1
if ($("#ddlRateCode").next().val() != "MYKL GROSS") { 
            $("#compRecord tbody").remove(); 
            $("#compRecord tbody").append("<tr class='compensationRecords'>" + 
         "<td class='tdCompRateCode table_td'>" + $("#ddlRateCode").next().val() + "</td>" + 
         "<td class='tdCompRate table_td'>" + $("#txtCompRate").val() + "</td>" + 
         "<td class='tdCompPercent table_td'>" + $("#txtCompPercent").val() + "</td>" + 
         "<input type='hidden' value='" + $("#ddlRateCode").val() + "' class='tdRateCodeId' />" + 
         "<td class='table_td'><button class='edit'>Edit</button>" + 
         "<button class='btnDelete'>Delete</button></td>" + 
         "</tr>"); 
           }   
+1

답변을 원한다면 문제를 조금 더 설명해야한다고 생각합니다. ;) –

답변

1
$("#compRecord").append("<tbody><tr>...</tr></tbody>"); 

원하는 내용이 아닌 경우 문제를 더 잘 설명해야합니다. 머리 속에있는 질문과 설명이없는 임의의 코드는 좋은 질문이 아닙니다.

관련 문제