I'm facing an issue with a page where I have a button <a href...>
. The problem arises when this button is clicked, as it changes the text within it. So far, everything works fine.
However, here's where I need help. This page serves multiple users, and I require the <div>
content to be refreshed periodically in order to display whether this button has been clicked by other users or not.
I have tried several JavaScript and jQuery scripts, but none seem to update the button. Although I can update the <div>
to display some text using $("#divid").text('Random msg');
, the actual button remains unaffected.
Even though the button is housed within a <div>
tag, no changes occur.