javascript - How to I sort child divs in a parent div by both visibility and id? -


i'm working configurator shows , hides divs. shows 4 tiled answers in fluid row. in scenario i'm dealing boats. if filter boat list length. divs hide still take space, result grid of images has missing spaces , doesn't line up. goal sort child divs inside of div, putting hidden ones @ bottom , sorting visible ones @ top id. below structure of data before filter applied. can me sort visibility , id?

<div class="row-fluid">     <div data-ref="model/17slxde" class="span3" data-order="8">          <label>             <div class=" item-label  tile-answer" style="padding-top: 3px; border: none; background-color: rgba(0, 0, 0, 0);">                  <input type="radio" data-ref="model/17slxde" id="5577aef88ff578876c419a0a" class="custom-radio">                   <span class=""><p>17 slx</p></span>                 <img src="img.png" style="padding: 0px; border: 0px; box-shadow: 0px" class="thumbnail" crossorigin="anonymous">                  </div>         </label>      </div>    </div>   


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -