![]() ![]() |
function xqr(e){
var ATTR = function (attr, value){ return this.setAttribute(attr, value); };
};
var a = 'tree';
xqr(document.getElementById(a)).ATTR('style', 'cursor: pointer;');
i know i can use: document.getElementById(a).setAttribute('style', 'cursor: pointer;');
but can the above code works ....?
thanks.. |
![]() ![]() |
No, it can't When you use Can you tell us what you actually wanted to achieve? |
![]() ![]() |
thanks for your respond...
what i'am trying to achieve:
sorry for my bad english |
![]() ![]() |
http://perfectionkills.com/whats-wrong-with-ext... Better to just type out the extra 8 letters. |
![]() ![]() |
thanks a lot (Couchy)
|



