var currentClassName = $(this).parent('td').next('td').find('input:text').attr('class');
if (currentClassName == undefined) {
currentClassName = $(this).parent('td').find('input:text').attr('class');
}
This works, but i suppose it can be written in one row? Im not really satisfied with this solution. Thanks
1 Answer