Title: sack question
Last modified: August 19, 2016

---

# sack question

 *  [mackie123](https://wordpress.org/support/users/mackie123/)
 * (@mackie123)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/sack-question/)
 * I’m playing with sack,
 * i have this :
    `die( "document.getElementById('$results_id').innerHTML = '$results'");`
 * If i want to update 2 divs (say results_id , and results_id2 , how would i do
   this with one die statement?
 * Is there any other method other then die to accomplish this using sack?
 * thanks

Viewing 1 replies (of 1 total)

 *  [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [17 years ago](https://wordpress.org/support/topic/sack-question/#post-1026427)
 * If the code above is working, then you could just include the second argument
   within that same statement:
 * `die( "document.getElementById('$results_id').innerHTML = '$results';document.
   getElementById('$results_id2').innerHTML = '$results2'");`
 * Using a semi-colon is a valid approach in Javascript for having two statements
   on the same line.

Viewing 1 replies (of 1 total)

The topic ‘sack question’ is closed to new replies.

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [sack](https://wordpress.org/support/topic-tag/sack/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/sack-question/#post-1026427)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
