{"size": 948, "ext": "js", "max_stars_repo_path": "public/js/register.js", "max_stars_repo_name": "payanthe/Charities-Benefactors-Connecter-Organization-In-Laravel-", "max_stars_repo_stars_event_min_datetime": "2019-03-01T13:55:43.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-01T13:55:43.000Z", "max_issues_repo_path": "public/js/register.js", "max_issues_repo_name": "payanthe/Charities-Benefactors-Connecter-Organization-In-Laravel-", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/register.js", "max_forks_repo_name": "payanthe/Charities-Benefactors-Connecter-Organization-In-Laravel-", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.1111111111, "max_line_length": 114, "alphanum_fraction": 0.4356540084}
$(document).ready(function () {
    $('.submit').click(function (e) {
        e.preventDefault();
        var data =$('form').serialize();
        $.ajax({
            type:'POST',
            url:'../php/donatorReg.php',
            data:data,
            cache:false,
            success:function (response) {
                if(response){
                    console.log(response);
                    if(response === 'Register Successful'){
                        document.getElementById("regResponse").innerHTML = "&nbsp;&nbsp"+response+"&nbsp;&nbsp;";
                    }
                    else{
                        document.getElementById("regResponse").innerHTML = "&nbsp;&nbsp;"+response+"&nbsp;&nbsp;";
                    }
                }
                else{
                    document.getElementById("regResponse").innerHTML = "&nbsp;&nbspServer Error&nbsp;&nbsp;";

                }
            }
        })
    })
});