javascript:(function(){var el = getSelectionParentElement(); if(getSelectedText()!="" && $(el).closest('.content-text').length){read_chap_id = $(el).closest('.chapter').data('chap-id'); $('#etext').val(getSelectedText()); $('#etype').val(6); $('#eedittext').val(''); $('#popup').modal('show');}})()