Skip to content Skip to sidebar Skip to footer

Javascript Not Executing When Placed In External Script File

I'm building an ASP.NET MVC site where I need a tag editor, similar to the one used on Stack Overflow. I've already looked up how to accomplish the necessary autocompletion with jQ

Solution 1:

You need to attach that event after the page is ready. #birds doesn't exist when it runs currently.

Something like

<script>
$(document).ready( function(){  bindAutoTagComplete('#birds'); } );

</script>

Post a Comment for "Javascript Not Executing When Placed In External Script File"