0

I have a h4:

<h4 class="ddd" style="word-wrap: break-word;">Simple text</h4>

and on document.ready:

jQuery(".ddd").dotdotdot({});

in my browswer the text is gone, the inspector shows <h4 class="ddd" style="word-wrap: break-word;"></h4>

BUT when I open the source of it, the text "Simple text" is still there! Is it possible that dotdotdot hides my text?

j08691
  • 204,283
  • 31
  • 260
  • 272
John Smith
  • 6,129
  • 12
  • 68
  • 123
  • well, as you've notices: Yes. – Martijn Nov 30 '17 at 14:14
  • 1
    If you want ellipsis if a text is too long, just use `text-overflow:ellipsis;` etc. – Martijn Nov 30 '17 at 14:15
  • 1
    Source shows you the original state of the document before js kicks in. Inspecting shows you the current state of the document including any changes js has made so something is removing your text - most likely the dot plugin (but without seeing all your code that replicates the error, I cannot say for certain) – Pete Nov 30 '17 at 14:20
  • but I thought its not possible that dotdotdot even disappears that text... – John Smith Nov 30 '17 at 14:29

0 Answers0