开发者

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

开发者 https://www.devze.com 2023-03-24 00:20 出处:网络
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.

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

精彩评论

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