Open haeinkang opened 5 years ago
$('.expand_btn').each(function(index){ $(this).attr('expand_btn-index', index); }).click(function(){ var index = $(this).attr('expand_btn-index'); $('.expand_colm[expand_colm-index=' + index + ']').animate({'width': width}, 500).css({'z-index':1}); });
index에 expand_btn-index 값을 삽입해 주는 것을 까먹었었음. var index = $(this).attr('expand_btn-index');
expanding width of expand_colm doesn't work
`$('.expand_colm').each(function(index){ $(this).attr('expand_colm-index', index); });