Skip to content

Why using $parent[0].lastChild #179

Closed
@giulioprovasi

Description

@giulioprovasi

When trying to use a custom position for the loading bar, I must create two nested div in order for the bar to works (css are for demo only):

<div id="loader" style="position:absolute; background: #FC0; width: 100%; height:50px; top:100px;">
        <div style="background: #c3325f; width: 100%; height:50px; top:100px;"></div>
      </div>

as this won't work:

<div id="loader" style="position:absolute; background: #FC0; width: 100%; height:50px; top:100px;">
      </div>

Isn't it possible to append the bar to the currentSelector instead of parentSelector ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions