<script>
    function checkVersionInputs() {
        $version = $("#form_apiVersion").val();

        if ($version == 2) {
            //show some stuff
        }

    }

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

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