jeudi 5 novembre 2015

Hiding only div content using javascript not the picture and border of the div

Vote count: -4

I want to hide only the div content not the div border and image and width of the div. The code is below:

<div>
    <img src="image.jpg">
        1
    </img>
</div>

And this div also contains border and picture. I just want to hide 1 in the div. How can I achieve it using javascript?

Legionar
3,971
asked 5 mins ago
Ali
1

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



Hiding only div content using javascript not the picture and border of the div

Aucun commentaire:

Enregistrer un commentaire