I have an application where I click on the row of a table, jquery takes the id of the table row, assembles a URL and places it inside a
The problem is that I am not able to make the attr. run in IE, I already tested it on chrome and mozilla , it works normal, but I need it to work in IE
PS. The application has to run in IE, and in version 8 !!!
Table (comes from an external page via Ajax)
foreach ($retorno as $valor) {
$html.= "<tr class='codFuncionario' codigo=".$valor['codigo'].">";
$html.= "<td>".$valor['nome']."</td>";
$html.= "<td>".$valor['drt']."</td>";
$html.= "<td>".$valor['cpf']."</td>";
$html.= "<td>".$valor['setor']."</td>";
$html.= "<td>".$valor['cargo']."</td>";
$html.= "<td>".$valor['turno']."</td>";
$html.= "</tr>";
}
echo $html;
Script
$(document).on("click", ".codFuncionario", function(e){
e.preventDefault;
var codFuncionario = $(this).closest('tr').attr('codigo');
//alert(codFuncionario);
$(".a_registrar_digital").attr('href', 'registrar_digital.php?codigo='+codFuncionario);
});
Html
<a href'' class='a_registrar_difital' target='end_font' >Click Aqui</a>
Someone there has already faced the same problem as me and has a solution ???