is there a way to add a class to the body when window is resized below
a certain width
) {
//do something}
http://2whoa.com
--- On Fri, 12/4/09, pab fliawebdes...@gmail.com wrote:
From: pab fliawebdes...@gmail.com
Subject: [jQuery] is there a way to add a class to the body when window is
resized below a certain width
To: jQuery (English) jquery-en@googlegroups.com
Date
Hi everyone, I'm trying to figure out a way to add a class only if the
browser is resized by the user at less then 1000px
This is what i have going right now.
$(function(){
$(window).width('width','100%');
$('body').css('width','w 1000px');
$(body).addClass(no_border);
});
as of
Hi, I was messing around with jonathna snook;s article
http://snook.ca/archives/javascript/jquery-bg-image-animations/
I'm trying to set an active state once user clicks on link
this is what I have now works, i tried getting the selected state by
adding a click function.
$(document).ready(function(){
$(.accordion h2:first).addClass(active);
$(.accordion p:not(:first)).hide();
$(.accordion h2).click(function(){
$(this).next(p).slideToggle(slow)
.siblings(p:visible).slideUp(slow);
$(this).toggleClass(active);
5 matches
Mail list logo