14 lines
473 B
HTML
14 lines
473 B
HTML
<p>This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=70586">bug 70586</a>.</p>
|
|
<ol>
|
|
<li>Use defaultValue method to change "value" attribute.
|
|
<input id="c1" placeholder="Placeholder" /><br />
|
|
</li>
|
|
<li>Use setAttribute method to change "value" attribute.
|
|
<input id="c2" placeholder="Placeholder" /><br />
|
|
</li>
|
|
</ol>
|
|
<script>
|
|
document.getElementById("c1").defaultValue = "Default";
|
|
document.getElementById("c2").setAttribute("value", "Default");
|
|
</script>
|