Submit Button - Which is best? Which is right?

Can somebody explain what the difference is between these two different ways of using a Submit button and why you would use one over the other?

<button type="submit" class="btn btn-primary">Save</button>

<button type="button" class="btn btn-primary" dmx-on:click="[form_name].submit()">Save</button>

Community Page
Last updated: