I've written a small asp function that query's my database and returns data. I've tested the function and it does return the data correctly.
I'm trying to figure out how I can then take that data and store it into my javascript array. I have this below but I can't figure out how to get the data there.
<script type="text/javascript">
$(function(){
var availableTags = [];
$("input[name='name_search']").change(function() {
if($(this).val == "First Name")
{
availableTags.push = <%= GetEmpFName() %>
} else {
availableTags.push = <%= GetEmpLName() %>
}
});
});
</script>