I have a div
tag with html table which is getting data
dynamically.
I would like to refresh the div tag every 5 seconds.
Can any one help me in knowing if there is attribute for div tag to refresh it?
I have a div
tag with html table which is getting data
dynamically.
I would like to refresh the div tag every 5 seconds.
Can any one help me in knowing if there is attribute for div tag to refresh it?
The proper way to achieve this is to use HTML5 expando attribute "data-" and then in your JavaScript function you can get the value from expando attribute and refresh the div content. In that way you can make refresh interval configurable.