<script>
    function checkVersionInputs() {
        $version = $("#form_apiVersion").val();
        if ($version == 1) {
            //hide some stuff
        }
        if ($version == 2) {
            //hide some stuff
        }
    }

    $(document).change(function () {
        checkVersionInputs();
    });

    $(document).ready(function () {
        checkVersionInputs();
    });
</script>