I would like to display some text to the user when my div
element is empty.
I have tried adding a placeholder attribute to my div
but the text is not being displayed.
<div placeholder="Enter the text"> </div>
How can I display a message when my div
element is empty?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…