var SelectionArea = $( this ).parent().parent().parent().find( 'tr:eq(2)' ).find( 'td[style="row2"]' );
Nie wiem jak to zrobić... próbowałem tak:
var Selection = SelectionArea.getSelection();
Pomocy.
var SelectionArea = $( this ).parent().parent().parent().find( 'tr:eq(2)' ).find( 'td[style="row2"]' );
var Selection = SelectionArea.getSelection();
$( 'a[href*="quote"]' ).click( function() { var SelectionArea = $( this ).parent().parent().parent().find( 'tr:eq(2)' ).find( 'td[style="row2"]:eq(0)' ); var Selection = SelectionArea.getSelection(); alert( Selection ); return; if( Selection.rangeCount ) { var Container = document.createElement('div' ); for( var i = 0, len = Selection.rangeCount; i < len; ++i ) { Container.appendChild( Selection.getRangeAt( i ).cloneContents() ); } } Selection = Container.innerHTML; alert( Selection ); return false; });