Created
August 12, 2021 06:29
-
-
Save shiv122/d41500009a20778770541d4f40b3214d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.readMore').change(function(e) { | |
e.preventDefault(); | |
var div = $(this).parent(); | |
div.find("p:first").css('-webkit-line-clamp', 'unset') | |
div.find("label:first").css('display', 'none') | |
}); | |
$('.boxOverflow').focusout(function(e) { | |
e.preventDefault(); | |
console.log('out'); | |
var div = $(this).parent(); | |
div.find("p:first").css('-webkit-line-clamp', '') | |
div.find("label:first").css('display', '') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment