The problem is that I have a html dynamic table, and I want to put in bold the text of a specific cell when I click on the row. try using jQuery, but it's still a bit complicated for me
Does anyone know how you could do that? Excuse me if it's something simple, but the truth is that I'm new to web programming.
This is my jQuery In this jQuery, what I do is that when I click on the icon in the row another row is expanded, (this is where I want to add the text of a cell to bold)
$(document).ready(function () {
$('.icon').click('click', function () {
var $pRow = $(this).parents('tr');
var $nextRow = $pRow.next('tr');
$nextRow.toggle();
$(this).toggleClass('icon-s icon-e');
});
})
This is the body of the table
<tbody>
<tr>
<td>
@if (Sub.Count > 0)
{
<span class="icon icon-e" style="float:left; cursor:pointer;" id="iconv" onclick="b()"></span>
}
else
{
<span style="display:inline-block;width:14px"> </span>
}
@i.Nombre
</td>
<td>@i.CuentaPT</td>
<td>@i.Importe </td>
<td>@i.importe2</td>
</tr>
<tr style="display:none;">
@if (Sub.Count > 0)
{
<td colspan="4" class="innerTable">
@NestedData.GetHtml(NuevoModelo, i.CuentaPT,1,ano,ano2)
</td>
}
else
{
<td colspan="4" ></td>
}
</tr>
</tbody>
I would like to put in bold the values of Amount