04-21-2009, 11:34 PM
|
#8 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
I have a question about this part:
Code:
var pTR = pTarget.parentNode.parentNode;
if(pTR.nodeName.toLowerCase() != 'tr')
You're creating the variable "pTR" and setting it to:
pTarget.parentNode.parentNode
Then using it later in the next line. Are you doing this just to
shorten it so it wouldn't be so long like this?
Code:
if(pTarget.parentNode.parentNode.nodeName.toLowerCase() != 'tr')
Also, how come you're using the toLowerCase() function?
|
|
|
|