| 
				Конструкция не пашет в функции , а в событии работает
			 вот кодfunction DeleteMessage(middel,recipient,authoruid) {
 
 jConfirm('Удалить сообщение?', 'Confirmation Dialog', function(r) {
 if(r){
 $.post('index.php?action=mail&delmessage=true', { middel: middel, recipient: recipient, authoruid: authoruid});
 
 $('this').closest('tr').remove();
 }
 
 });
 }
 </script>
 
 <input type=button class='11px' style='background: yellow repeat-x left;  width:35px; height:17px; line-height:12px;' title='Удалить это сообщение' value='Уд' onclick='DeleteMessage($mid[$i], $recipient[$i], $authoruid[$i]);'>
 
 $('this').closest('tr').remove(); не работает, а если я его ставлю прямо в событие вот так
 
 <input type=button class='11px' style='background: yellow repeat-x left;  width:35px; height:17px; line-height:12px;' title='Удалить это сообщение' value='Уд' onclick=$('this').closest('tr').remove();>
 
 то всё пашет замечательно. подскажите где ошибка?
 |