I like to use my own properties in certain elements then be able to access them using document.getElementById(). It works great in IE, but not Firefox.
<div id="mydiv" fileType="pdf">
var v1 = document.getElementById("mydiv");
alert(v1.fileType);
I get an alert window in IE with "pdf". In Firefox, I get "undefined". Any ideas how I can accomplish something like this in Firefox.
Thanks in advance.
ToddWW
<div id="mydiv" fileType="pdf">
var v1 = document.getElementById("mydiv");
alert(v1.fileType);
I get an alert window in IE with "pdf". In Firefox, I get "undefined". Any ideas how I can accomplish something like this in Firefox.
Thanks in advance.
ToddWW