Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: "restrict/checkUser.php",
- type: "POST",
- cache: false,
- dataType : 'json' ,/*adiciona o tipo de retorno*/
- error: function(){
- alert('Erro ao Tentar ação.');
- },
- success: function (data) {
- alert('listou');
- console.log(data[0].crs_id);
- console.log(data[1].crs_id);
- console.log(data[2].crs_id);
- console.log(data[3].crs_id);
- }
- });
- $.ajax({
- url: "restrict/checkUser.php",
- type: "POST",
- cache: false,
- dataType : 'json' ,/*adiciona o tipo de retorno*/
- error: function(){
- alert('Erro ao Tentar ação.');
- },
- success: function (data) {
- alert('listou');
- for (let d of data) {
- console.log(d.crs_id);
- }
- }
- });
Add Comment
Please, Sign In to add comment