JavaScript 및 JSON을 사용하여 필요에 따라 그리드 뷰로드를 구현하고 있습니다.JavaScript 변수에서 체크 박스를 할당하는 방법
function OnSuccess(response) {
debugger;
var xmlDoc = $.parseXML(response.d);
var xml = $(xmlDoc);
pageCount = parseInt(xml.find("PageCount").eq(0).find("PageCount").text());
var customers = xml.find("Quotes");
$("[id$=gridPolicyNumbers] .loader").remove();
customers.each(function() {
var customer = $(this);
var row = "<tr>" +
**"Place check box code here"**+
"<td>" + customer.find("PolicyNumber").text() + "</td>" +
"<td>" + customer.find("QuoteNumber").text() +
"</td><td>" + customer.find("InsuredName").text() +
"</td><td>" + customer.find("EffectiveDate").text() +
"</td><td>" + customer.find("ExpireDate").text() +
"</td><td>" + customer.find("LineCode").text() + "</td>"
+ "</tr>";
$("[id$=gridPolicyNumbers]").append(row);
//alert(row.text);
});
여기에서 첫 번째 열을 확인란으로 추가해야합니다.
아무 방법이나 할 수 있습니다 ..
미리 감사드립니다. **"Place check box code here"**+
당신이해야 할 모든 대신에
가 먼저 기초를 확인할 수 있습니다. [이 예제는 여기에 있습니다.] (http://www.w3schools.com/html/tryit.asp?filename=tryhtml_checkbox)를보십시오. 더 나은 HTML 기초를 실제로 빨리 얻을 수 있습니다. :) – Torben