Title: setTimeout to hide a script &#8211; no luck
Last modified: August 31, 2016

---

# setTimeout to hide a script – no luck

 *  [allisonluke](https://wordpress.org/support/users/allisonluke/)
 * (@allisonluke)
 * [10 years ago](https://wordpress.org/support/topic/settimeout-to-hide-a-script-no-luck/)
 * I want to force a livechat element — activated via a script embedded right there
   in the page editor — to hide after several seconds. The problem I am having is
   the chat box consists of six different elements. I want to hide all but one of
   the elements. Below are the script and the setTimeout code I tried with no luck.
 * The script:
    <script src=”[http://www.sellwithchat.com/scripts/invitation.ashx?company=allisonlaw”></script&gt](http://www.sellwithchat.com/scripts/invitation.ashx?company=allisonlaw”></script&gt);
 * Below is the timeout I am trying to use. “#div.livechat_body” is just one of 
   the elements I want to hide:
    setTimeout(‘$(#div.livechat_body).hide()’,1500)
 * allisonlaw.com

The topic ‘setTimeout to hide a script – no luck’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [allisonluke](https://wordpress.org/support/users/allisonluke/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/settimeout-to-hide-a-script-no-luck/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
