javascript - Getting position of last child div within slides -


i using dragend plugin turn series of web pages slides. html looks this:

<main id="swipe-page">     <div class="dragend-page">         <div class="page-content"></div>         <div class="page-content"></div>         <div class="page-content"></div>     </div>     <div class="dragend-page">         <div class="page-content"></div>         <div class="page-content"></div>     </div>     <div class="dragend-page">         <div class="page-content"></div>         <div class="page-content"></div>         <div class="page-content"></div>         <div class="page-content"></div>         <div class="page-content"></div>     </div> </main> 

some slides larger others, trying manually adjust height using jquery plugin gives each slide ridiculously large height.

to attempt this, first getting correct dragend-page slide running command:

$('.dragend-page').eq(this.page) 

now need position of last page-content div. attempted this:

$('.dragend-page').eq(this.page).children(".page-content").last() 

but it's not returning anything. $('.dragend-page').eq(this.page) not returning object.

this.page returns current slide (dragend-page div) user on

so how manually adjust height? there better way this?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -