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)")
精彩评论