开发者

how to avoid refreshing a div. if the div has been used?

i have a div inside a iframe. It will be refreshing very 10 seconds. the div place holder has开发者_高级运维 4 text boxes controls. if any of the textbox is used then i want to not to refresh the div.


You can mark mark the div whenever any of the textbox has been used. You can add a new class to the div with the .addClass('used'), and then when refreshing filtering out the divs that do not contain that class:

$(".myDivClass:not(.used)")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜