javascript - Make jQuery getScript() know other variables -


var some_array = [     1, 2, 3, 4 ]; $.getscript('{% static 'js/input_field_validations.js' %}'); 

my function inside input_field_validations.js says:

uncaught referenceerror: some_array not defined 

input_field_validations executed before need or happening here? since static-loading django, added tag


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -