I want to create a external java script file that should contain some validation functions. I want to add j query into my java script file, how can i do this,
I tried the following code but it seems to be not working,
var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-1.11.0.min.js';
script.type = 'text/javascript';
document.getElementsByClassName('email')[0].appendChild(script);