I got some help from a friend on irc.freenode who suggested the following solution that does the trick.
ui.placeholder.css("visibility", "visible"); ui.placeholder.css("background-color", "red");
The background color of the placeholder was not shown because the actual item was not visible (I suppose it is hidden by default). Therefore, setting it to visible, you can see a different background color.
source share