jeff5656 Posted February 12, 2012 Share Posted February 12, 2012 I put the jquery script into my subdirectory. In the header which one is correct: <script type="text/javascript" src="jquery.js"></script> or <script src="jquery.js"></script> Link to comment https://forums.phpfreaks.com/topic/256960-new-to-js-simple-question/ Share on other sites More sharing options...
trq Posted February 13, 2012 Share Posted February 13, 2012 Either will work. Browsers ignore the type directive anyway though I believe it is required if you want your document to validate as xhtml or html 4. Link to comment https://forums.phpfreaks.com/topic/256960-new-to-js-simple-question/#findComment-1317409 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.