Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Jquery display block vs show()

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #185609
    vgvenkat
    Participant

    HI all,
    I was just going through the jQuery tutorials in the lodge section and came to think of this. When “li” is set to display none in css, the following issue is found
    1) if “li” element is set to .show() in jquery, the bullet points are shown.
    2) if “li” element is set to .css(“display”,”block”) only the text appears not the bullets. Why this behaviour?

    Here is a link to the pen.

    #185611
    Alen
    Participant

    This is not a JavaScript issue. It’s just CSS.

    Default display on list items is, list-item

    http://codepen.io/alenabdula/pen/xqGkg

    #185613
    vgvenkat
    Participant

    Thanks. should have checked the almanac for the display values I guess.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.