Ensure button doesn't submit form

This commit is contained in:
Keith Wood 2008-07-06 05:37:21 +00:00
parent 0b4831cedb
commit 0a7dbd62bf

View File

@ -1,4 +1,4 @@
<input type="text" size="10" value="" id="dialog" readonly="readonly"/> <button id="dialogButton">Open dialog</button>
<input type="text" size="10" value="" id="dialog" readonly="readonly"/> <button id="dialogButton" type="button">Open dialog</button>
<script type="text/javascript">
function setDateFromDialog(date) {
$('#dialog').val(date);