qawsedstation
2/7/2016 - 8:10 PM

DefineGenderJquery

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        $.ajax({url: "http://definegender.com:8080/?name=george", success: function(result){
            $("#div1").html(JSON.stringify(result));
        }});
    });
});
</script>
</head>
<body>

<div id="div1"><h2></h2></div>

<button>Get Gender</button>

</body>
</html>