[jQuery] Re: inArray inst working in my script

2008-02-04 Thread Karl Rudd
inArray doesn't return a boolean, it returns an index and -1 if the value is not in the array. jQuery.inArray( value, array ) Determine the index of the first parameter in the Array (-1 if not found). from: http://docs.jquery.com/Utilities/jQuery.inArray#valuearray So you need to cha

[jQuery] Re: inArray inst working in my script

2008-02-04 Thread Sebastián Würtz
Sebastián Würtz escribió: jQuery.getCSS = function(url, media, rel, title) { estilos_href = new Array(); $.each( document.styleSheets, function(i, n){ estilos_href[i] = n.href; }); nuevo_estilo = jQuery(document.createElement('link')).attr({ href: url, m