get next or live element with jQuery find

Alright, not sure if `find()` will be the correct method for this. I am using [pretty photo][1] and I am loading some inline content. Basically when pretty photo launches, it clones what is defined inline and displays it in the lightbox. The issue here is I cannot call `$("#myTextField").datepicker();` to activate a jQuery UI Datepicker on a text box. The reason being is it applies it to the invisible one I originally wrote, not the cloned one that is visible. I ran into this issue before with the `Submit` button in the inline content which I solved by using `$("#mySubmitButton").live('click',function().....` I tried `$(this).find("#myTextField").next().datepicker();` but no dice. Any other suggestions? I dont know how else I could use the `live()` method. [1]: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
I managed to get the datepicker pop up, except the datapicker isn't inserting the date when I click on a number. I am assuming its putting it in the original invisible content $("#shoot_date").live("focus",function(){$(this).datepicker();});

以上就是get next or live element with jQuery find的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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

联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏