Created
January 15, 2018 04:53
-
-
Save xie186/1719178c8299e426b683a5bbb7c685be to your computer and use it in GitHub Desktop.
Haha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block js_block %} | |
<script> | |
$("#project-select").change(function (){ | |
var pro_gene = $(this).val(); | |
$.ajax({ | |
url: '{% url "gene_expdb" %}', | |
data: { | |
'pro_gene': pro_gene, | |
}, | |
dataType: 'json', | |
success: function (data) { | |
if (data) { | |
alert("A user with this username already exists."); | |
} | |
} | |
}); | |
}); | |
</script> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment