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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -