0
I am creating internal message exchange in my project, as shown in the image:
On the button with the image surrounded in red intended to show an alert with the number of messages not yet read, which are in bold, this way as shown in the image below surrounded in red:
Button where I want to create the alert:
<td class="td-info view_data apagar" id="<?php echo $row["Id"]; ?>,<?php echo $row["Para"]; ?>" data-toggle="modal" href="#dataModal" width="20%" <?php echo $row["Status"] != '0'?' style="font-weight:bold" ':' style="font-weight:normal" '?>>
Table where I receive messages:
<table id="table" class="table table-bordered">
<tr>
<th width="20%" style="text-align:center">De</th>
<th width="60%" style="text-align:center">Assunto</th>
<th width="10%" style="text-align:center">Prioridade</th>
<th width="10%" style="text-align:center">Recebido</th>
</tr>
<?php
while($row = mysqli_fetch_array($result))
{
?>
<tr>
<th width="10%" colspan=4>Recebido: <?php echo $row["Data"]; ?></th>
</tr>
<tr>
<td><?php echo $row["De"]; ?></td>
<td class="td-info view_data apagar" id="<?php echo $row["Id"]; ?>,<?php echo $row["Para"]; ?>" data-toggle="modal" href="#dataModal" width="20%" <?php echo $row["Status"] != '0'?' style="font-weight:bold" ':' style="font-weight:normal" '?>><?php echo $row["Assunto"]; ?></td>
<td><?php echo $row["Prioridade"]; ?></td>
<td><?php echo $row["Hora"]; ?></td>
</tr>
<?php
}
?>
</table>
without vc example of how your code is hard to help, but I believe this is solved with css and not javascript
– Ricardo Pontual
@Ricardo Pontual edited the question with the code
– Bruno