```java
$(widget).appendTo(inner).css("display", oldDisplay);
```