$('document').ready(function(){
//textoverflow($('.content'),100);
$('span').click(function(){
//disable textoverflow function & output full text
});
});
function textoverflow(ele, num){
ele.each(function() {
$(this).text(
$(this).text().slice(0,num) + '...'
).append('<span>More</span>');
});
}
I have a text use a function slice the content.
There is a button when user click, i want to disable function only for $this .content & output all text without slice.
How to disable function?
text-overflow: ellipsis