It seems like I have a simple issue at hand, but for some reason, I can't figure out the solution on Facebook. I have two AJAX functions that connect to PHP scripts through the onClick
event. Here is how my HTML code is structured:
onClick = "previousMonth(this.id); monthDisplay_previous(this.id)"
Right now, it only displays the output from previousMonth(this.id)
. However, if I switch the function calls and set it up as:
onClick = "monthDisplay_previous(this.id); previousMonth(this.id)"
then it only shows the output from monthDisplay_previous(this.id)
- it doesn't execute both of them. Both functions interact with different PHP scripts. I believe this information should be sufficient, but I can provide more code if needed. Any suggestions?