Set input text with placeholder
Illustrates Safari bug setting input text when there's a placeholder - the new text and placeholder are both visible.
by winstonchang
HTML
<input id="txt" type="text" placeholder="placeholder text">
<br>
<input type="button" value="Set text" onclick="setText()">
JavaScript
function setText() {
document.getElementById("txt").value = "New text";
}