dimanche 22 mars 2015

Refresh div content to check status of button


I have a page and inside it i have a button . My problem is that this button when is clicked, it changes the text in the button. Until here, all is working.


Now my problem... This page is multi user page, so i need to refresh content every period of time to show other users if this button already clicked or not.


I tried many javascript and jquery codes but i can´t update the button. I can update div to write some text using $("#divid").text('Random msg'); but this do not change the button.


The button is inside tag but nothing happens.


I hope your help, and thanks!





Aucun commentaire:

Enregistrer un commentaire