0
One with 4 , being an Hide. Is there any way I can click on any and take the value of this Hide and send it to my controller? That way I get the value of the is being clicked.
$('#nmUsuario').on("dblclick", '.clique', function () {
CarregaDados($(this).text());
})
function CarregaDados(ajaxParameter) {
$.ajax({
url: '/CadastroAcesso/CarregaDadosPagina',
datatype: 'json',
contentType: 'application/json;charset=utf-8',
type: 'POST',
data: JSON.stringify({ _nivel: ajaxParameter }),
success: function (data) {
},
error: function (error) {
}
})
}
Now, how do I click on this <TD>
and take the value of what is Hide. I think I should take hi value from <TR>
, make a each and load only the value of the <TD>
But I’m getting caught up in it. How to go through the <TR>
to catch the <TD>
that I want.
I’ve been away for a while and now I’ve come back to finish what I started. Keep giving error. It does not enter the success of ajax
, on the contrary, it enters the function Error
of ajax
.
Maybe you can only do it by going to pick up td by id or name
– CesarMiguel