var k = jQuery.noConflict(); function equalHeight(group) { var tallest = 0; group.each(function() { thisHeight = k(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); }
k(document).ready(function(){
equalHeight(k(".column")); });
var getSelectedText = function() {
var text = '';
if (window.getSelection) {
text = window.getSelection().toString();
} else if (document.selection) {
text = document.selection.createRange().text;
}
return text;
};
$('.класс у которого происходит выделение').on('mouseup', function(){
var text = getSelectedText();
if (text != ''){
alert('действие при выделении');
}
});