I am facing a strange scenario only in IE7 like,
adding a class to an ID.
$(idName).addClass("sel");
If my idName is short then I am not facing any issue but if it is very long then browser is hanging.
At the time of hanging, idName is like dateRange(2006,2007,2008,2009,2010)
Edited:
populatedID = "dateRange(2006,2007,2008,2009,2010)";
var idName = "li[id=\"" + populatedID + "\"]";
$(idName).addClass("sel");
Please suggest me any alternative to work with it.
Thanks in advance.
that is an odd looking ID which would equate to
id="dateRange(2006,2007,2008,2009,2010)"if it were in-line and thus invalid as ID can consist of only alpha numeric plus “-” and “_” and begin with an alphahttp://www.w3.org/TR/html401/types.html#type-name