JQuery Problem With attr()

Here is a short snippet of HTML (it contains all relevant HTML and javascript code):
Notice this line: alert(id); What I get is a blank popup window. Shouldn't id be equal to 4? I don't understand it. The reason why this matters is because I need the id for the next three/four lines of code that are commented now. EDIT: Now, I'm using valid ids but the alerts are still empty: photos) > 0): ?>

Why? I don't understand.

以上就是JQuery Problem With attr()的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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