jQuery 테이블 접근

$('#listTable tr').each(function(index){
// 테이블 td,td 사이즈
var tableSize = $('#listTable tr').length ;
// td값
var tdText1 = $(this).children().eq(0).text();
var tdText2 = $(this).children().eq(1).find("input[id=‘abc’]”).val();
//특정문자 여부
var charCheck = text.indexOf(“,”);
//특정문자 전체 변경
text = text.replace(/,/gi,'');
});

​[handlebars] if문 

{{#if category_1}}
{{#util_equal category_1'계'}}
text1
{{else}}
text2
{{/util_equal}}
{{else }}

{{/if}}


​테이블 데이터 접근

$('#listTable tr').each(function(){
var tr = $(this);
var td = tr.children();
var text = td.eq(2).text();
});


+ Recent posts