I'm still having difficulties in Jquery, on the face of it I'm bringing a value from the Mysql database:
<div id="cod_<?php echo $jmValor->IdCodUsuarios; ?>">Nome do usuário</div>
But I need to type what happens with the PHP explode (), ie, remove the cod _ and leave only the value coming from the bank. So I did it this way:
var id = valor.split('cod_');
var valor = document.getElementById(id);
$(".conteudoChat").load("chat/?convidar=s&Key="+valor);
What I need is to get the value from the database, put the value in the div.
Thank you!