<form> <!-- ... --> <button id="solve">Solve</button> </form>
<form> <!-- ... --> <button type="button" id="solve">Solve</button> </form>