Skip to content

Commit

Permalink
phone number live sample clears on submit (mdn#6814)
Browse files Browse the repository at this point in the history
Fixes mdn#6813
  • Loading branch information
peterbe authored Jul 13, 2021
1 parent 4f2fffb commit f60f60c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ <h4 id="HTML">HTML</h4>
&lt;br&gt;
The expected format is like ###-###-####.
&lt;/p&gt;
&lt;form action="#"&gt;
&lt;form action="#" onSubmit="return false"&gt;
&lt;input id="phone"&gt;
&lt;button onclick="testInfo(document.querySelector('#phone'));"&gt;Check&lt;/button&gt;
&lt;button onClick="testInfo(document.querySelector('#phone'));"&gt;Check&lt;/button&gt;
&lt;/form&gt;
&lt;p id=&quot;out&quot;&gt;&lt;/p&gt;</pre>

Expand Down

0 comments on commit f60f60c

Please sign in to comment.