Adding different data to different jquery tabs
- by Sarah
i have 2 functions
1- addMessage(): save data into database and is called only on click .
2-updateMessage():get data with ajax from database, called when document is ready ,called every 3 seconds for new data, and called on success of addMessage().
function updateMessage()
{
$.ajax({
url:"db.php",
type:"post",
…