I want to make a remark column in a php page. If the content of remark is longer than 50 words then the following words will become "...more". When the user check the "...more" so it can show the continue content without jump or refresh page.
I have no idea how to show the content after click the "...more"
$templen = $row['Remark'];
if(strlen($templen)>30){
echo "<td>" . substr($row['Remark'],0,30) . "<a href='' onclick=return" .substr($row['Remark'],30)."> ... more</a>" . "</td>";
} else {
echo "<td>" . $row['Remark'] . "</td>";
}