How can I convert jQuery into JavaScript? I need help I can't solve this please help me anyone
$(".expand").click(function() {
var el = $('.parrent');
var curHeight = $('.parrent').height();
if (curHeight == 200) {
let autoHeight = el.css('height', 'auto').height();
el.height(curHeight).animate({
height: autoHeight
}, 1000);
$(".expand").text("see less")
}
else
{
let autoHeight = el.css('height', '200px').height();
el.height(curHeight).animate({
height: autoHeight
}, 1000);
$(".expand").text("see more");
}
});