FormBuilder Code Make More Genereic
I would add "data-api" as an attribute to the buttons

&lt;input type='button' data-api='Home/HtmlControlTest' /&gt;


Then you could do this with the js

$('input[data-api]').click(function () {

            $.ajax({
                url: $(this).attr('data-api'),
                type: 'POST',
                contentType: 'application/html',
                //data: JSON.stringify(model),
                success: function (content) {
                    $('#divPartialViewContainer').append(content);
                },
                error: function (e) { }
            });
        });