jquery - waitForKeyElements doesn't recognize selector, with "$"? On reload of same id? -


so trying use waitforkeyelements() function in order detect ajax content. div trying select has "$" in id (e.g. <div id="mydiv$0">) , after trial , error 90% sure causing problem. function doesn't work. how fix this?

also question regarding how waitforkeyelements() function works. site has dropdown in select option. each option load table same id's , classes, different content.

would function recognize new table loading?

this 2 questions, in one. first answered blender; must escape $ characters in id.

so, <div id="mydiv$0">, use like:

waitforkeyelements ("#mydiv\\$0", youractionfuntion); 


answer second question:

each option load table same id's , classes, different content. (waitforkeyelements) recognize new table loading?

is: it depends.

is page deleting , re-adding element? if so, use waitforkeyelements() normally.

is page changing content of element? best approach varies on circumstances but, in general, use approach similar second part of this answer.

we need see target page, or an sscce, more.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -