for the
<input type="file" name="addfile" id="addfile" />
<input type="submit" id="btnadd" value="Addfile" onclick="filetype(addfile)" />
i need to check the file type(pdf or doc etc) in javascript that is added for this what do i need to pass in filetype onclick function to have addfile name passed instead of addfile passed in it ?
thanks,
michaeld