On Jun 5, 11:13 am, Lee <REM0VElbspamt...@cox.netwrote:
Jake G said:
Hi,
I have elements my page with an "alias" in them
e.g.
<input type=hidden id="S_SELLOG" name="S_SELLOG" iegAlias="S_SELLOG01"
maxlength=1 title="Login/Logout" style="top:0; left:0;">
I am trying to refer to them using the alias name
var myObject= event.srcElement;
fieldID = myObject.id;
alias = myObject.alias
It keeps coming up as undefined.
If you're testing in Internet Explorer, it's because you haven't
added an attribute named "alias". You added "iegAlias".
If you're testing in Firefox or some other browser, there are
a few other reasons, as well.
--
Sorry that was just a typo.
Here is what i have....
<input type=hidden id="S_SELLOG" name="S_SELLOG" iegAlias="S_SELLOG01"
maxlength=1 title="Login/Logout" style="top:0; left:0;">
var myObject= event.srcElement;
fieldID = myObject.id;
alias = myObject.iegAlias
alert("My Object " + alias)
alert("fieldID " + fieldID)
and alias is still coming up as undefined.