JQUERY PLUGIN

Our jQuery Plugin provides an intuitive way to implement our API in your online forms.

Notice: This plugin is still under development.

USAGE

$('input#firstname').genderApi({key: genderApiClientKey}).on('gender-found', function(e, result) {
                if (result.accuracy >= 60) {
                    alert('Gender found: ' + result.gender);
                }
            });

RESOURCES

Most recent version: js/jquery/gender.js

<script type="text/javascript" src="https://gender-api.com/js/jquery/gender.js"></script>

Minified version: js/jquery/gender.min.js

<script type="text/javascript" src="https://gender-api.com/js/jquery/gender.min.js"></script>

EXAMPLE

Type in any first name here. If a gender is found, a popup will alert you.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Got it