How do I use jquery to get the height of a dynamically created child element with no Id

I have a div that dynamically get's loaded with two images always and possibly one div in between. Neither the images or the div have id's associated with them (and I can't make them have Id's). Inspecting them with firebug they are just shown as `` and `
`. I need to get the height of this child div when it exists. I was hoping I could do something like this... $("#parentDiv > DIV").height(); or this... $("#parentDiv > DIV")[0].height(); Since jquery $ returns an array. The second one gives javascript errors so I know I'm off there. I think these should be close though. Any ideas? Edit: Here is the html I am running against.

以上就是How do I use jquery to get the height of a dynamically created child element with no Id的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏