JavaScript - With or Without Enclosing Script tag

This is really simple. But to be honest, I am still wondering why the later one will not work?

// Functional

<script type="text/javascript" src="lib/jquery/jquery.js"></script>

// Non Functional

<script type="text/javascript" src="lib/jquery/jquery.js" />

I believe it is nothing to do with JQuery. More to JavaScript thing.

Published Monday, October 20, 2008 12:38 PM by wenching
Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)