jquery - "removeAttribute is not a function" error message -


mac firefox 3.6.13 firebug gives me error: "removeattribute not function" have read somewhere "removeattribute" buggy in browsers need use it. if browser problem can suggest different method.

function closethumbview(){   $("#thumbreelbox").fadeout(1000, function(){     $("#thumbreellist > li > a, #thumbreellist > li, #thumbreelnav, #thumbreelbox").removeattribute('style');     }); } 

try use dom element removeattribute() method:

function closethumbview(){   $("#thumbreelbox").fadeout(1000, function(){     els = $("#thumbreellist > li > a, #thumbreellist > li, #thumbreelnav, #thumbreelbox");     for(ind=0;ind<els.length;ind++){        els[ind].removeattribute('style');     }   }); } 

or if want use jquery method, use removeattr() 1 of respondents said:

function closethumbview(){   $("#thumbreelbox").fadeout(1000, function(){     els = $("#thumbreellist > li > a, #thumbreellist > li, #thumbreelnav, #thumbreelbox");     els.removeattr('style');   }); } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -