` with the load method. After that I do some stuff in the callback function.
When the function to create the new `
` has finished, it returns to the calling function that is supposed to prepend the message to the last inserted `
`.
That's where the problem starts:
I use the selector to find `$(someDiv : last)`, but it puts it in the wrong `

`. So, I know it has something to do with the async process.
I haven't really worked out what I could do to fix this, because now I am not working from a callback function.
If you wanna see a [live example][1] The sourcecode is clutterd with debug code in the form of alerts, but you can see what it is doing.
[1]: http://www.woonbel.nl/testpagina2.php
@Richard: It is "to", not "too". "Too" is more like one of these: synoniemen.net/index.php?zoekterm=eveneens ;-)
@Richard: It is "to", not "too". "Too" is more like one of these: synoniemen.net/index.php?zoekterm=eveneens ;-)
以上就是Cannot find the right
with selector after loading the HTML的详细内容,更多请关注web前端其它相关文章!
相关文章
评论 抢沙发
前端开发相关广告投放 更专业 更精准
联系我们觉得文章有用就打赏一下文章作者
支付宝扫一扫打赏

微信扫一扫打赏
