<script type="text/javascript"> $("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text(''); sch('brands', '<?echo $data[0]["brand"]."')";?>").text(" / <?echo $data [0]["brand"];?>"); $("#sitemap a:eq(2)").attr("onclick", "$('#sitemap a:eq(1)').text(''); sch('categories', '<?echo $data[0]["category"]."')";?>").text(" / <? echo $data[0]["category"];?>"); </script>
This works perfectly in Firefox and Opera, but Chromium and IE6 only change the text to value of $data[0]["brand"/"category"] (which is a string) and seem to ignore the onclick attr, any ideas?