IE Showing invalid argument error in jQuery.js?
Due to the following script IE shoes invalid argument error , Plz help me!
I am new to jQuery.
jQuery(document).ready(function(){
jQuery(".color_tag_cloud a").each(function(){
var links = jQuery(this).attr("href");
jQuery(this).removeAttr("title");
jQuery(this).attr("title",jQuery(this).text());
if(links.indexOf("?")!=-1){
var query =links.split("=")[1];
var str = "#".concat(query);
jQuery(this).css("background",str);
}else{
var color = links.split("colors/")[1];
var query = color.split("/")[0];
var str = "#".concat(query);
jQuery(this).css("background",str);
}
});
jQuery(".color_tag_cloud a").hover( function() {
jQuery(this).stop().animate({"opacity": "0.2"}, "slow");
},function() {
jQuery(this).stop().animate({"opacity": "1"}, "slow");
});
});
And my HTML
<div class="color_tag_cloud">
<a href="http://www.freecssshowcase.com/colors/111111/">red</a>
<a href="http://www.freecssshowcase.com/colors/e41236/"blue></a>
<a href="http://www.freecssshowcase.com/colors/000000/">black</a>
</div>