D
drblitzkrieg
Hi,
say you have an input from a form, and you want to be able to refer to
a containing tag, without knowing its particular name. For example, in
the following:
<div id="div1">
<select name="myinput" onChange="changeDiv( ??? ,
this.selected.text);">
<option>....</option>
<option>...</option>
</select>
</div>
<div id="div2">
.....(similar content)
</div>
What I want to do where the "???"s are is pass it a reference to the
"div1" tag. If we use the "this" keyword in that onChange, it refers
to the "myinput" droplist, so is there a property of any object to
access its next-highest encompassing tag/object/frame/div/form in
particular?
Thx,
say you have an input from a form, and you want to be able to refer to
a containing tag, without knowing its particular name. For example, in
the following:
<div id="div1">
<select name="myinput" onChange="changeDiv( ??? ,
this.selected.text);">
<option>....</option>
<option>...</option>
</select>
</div>
<div id="div2">
.....(similar content)
</div>
What I want to do where the "???"s are is pass it a reference to the
"div1" tag. If we use the "this" keyword in that onChange, it refers
to the "myinput" droplist, so is there a property of any object to
access its next-highest encompassing tag/object/frame/div/form in
particular?
Thx,