mituri

[JS] Pobieranie nieotagowanego tekstu

May 11th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. <div class="container">
  2. My text
  3. <p>Paragraph text</p>
  4. </div>
  5.  
  6. //returns 'My text'
  7. $('.container')[0].childNodes[0];
Advertisement
Add Comment
Please, Sign In to add comment