Adding submit or update button to custom metabox?

I have alot of custom meta boxes, and the user has to scroll to the top everytime he wants to save the meta info.

Is there a way to put submit buttons at every meta box that does that same as the update button?

3 Answers
3

Don’t know if i agree with EarnestoDev answer which is more of an opinion then an answer based on facts and not true in all cases, since you can use jQuery to trigger
the submit event when a different element is clicked, so just add this js code once

<script>
jQuery('.metabox_submit').click(function(e) {
    e.preventDefault();
    jQuery('#publish').click();
});
</script>

and in each metabox add:

<input type="submit" class="metabox_submit" value="Submit" />

Leave a Comment