Code bellow is copied from a php pack, I change it to html file:
[CODE]<style>
a.button
{
margin: 10px;
color: #FFF;
padding: 10px;
background: #000;
border-radius: 10px;
}
</style>
<div>
<a onclick=”$(‘#myform’).submit();” class=”button”>Save</a>
<a onclick=”location = ‘to/cancel.htm’;” class=”button”>Cancel</a>
</div>
<form action=”to/save.htm” method=”post” id=”myform”>
</form>
Following line can’t be changed, because it relates too many things in the php pack.
[CODE]<a onclick=”$(‘#myform’).submit();” class=”button”>Save</a>
Button ‘Cancel’ works fine, but button ‘Save’ doesn’t.
Can you make button ‘Save’ to submit form of ‘myform’?