Created
September 1, 2009 14:10
-
-
Save flazz/179108 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Format Description Service</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script type="text/javascript" src="public/js/jquery-1.3.2.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("uploadfile").change(function(event){ | |
fileElement = $("uploadfile").value.split("."); | |
index = fileElement.length-1; | |
alert(fileElement[index]); | |
$("extension").text(fileElement[index]); | |
}); | |
}); | |
</script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment