0

I have a form populated by ajax, and for manipulation of the frontend, I'm trying to something happen when the div has content, but I can't see the content of the div...only with the console.dir, like the picture, so my questions is how do I console.dir only one parameter (says innerTEXT)?

enter image description here

   var abc = document.getElementById('p1tipo');
   console.dir(abc);
 
 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<div>
   <span id="p1tipo">something AJAX</dd>
</div>
Not A Bot
  • 2,474
  • 2
  • 16
  • 33
rui_sonika
  • 45
  • 6

0 Answers0