jq div display script webkit issues
Posted
by
Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2011-01-15T22:32:49Z
Indexed on
2011/01/15
22:53 UTC
Read the original article
Hit count: 304
jQuery
|cross-browser
$(document).ready(function() {
$('#chekboxes a').click(function(e) {
$('.visible').removeClass('visible').addClass('invisible');
var thediv = $(this).attr('href');
$(thediv).removeClass('invisible').addClass('visible');
})
});
This simple bit of jq works in FF and not in Chrome and Safari.
Despite googling widely, I cannot tell whether there's a way to make it work in Safari and Chrome or not.
Does anyone know a fix or what is wrong ?
Thanks, Tom
© Stack Overflow or respective owner