Code bellow is copied from a php pack, I change it to html file:
Following line can't be changed, because it relates too many things in the php pack.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>
Button 'Cancel' works fine, but button 'Save' doesn't.Code:<a onclick="$('#myform').submit();" class="button">Save</a>
Can you make button 'Save' to submit form of 'myform'?


Reply With Quote
Bookmarks