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
Post a Comment