Enjoy an ad free experience by logging in. Not a member yet?
Register .
09-24-2009, 06:58 AM
PM User |
#1
Senior Coder
Join Date: Aug 2009
Location: Mansfield, Nottinghamshire, UK
Posts: 1,547
Thanks: 57
Thanked 148 Times in 147 Posts
animate with parent. children
Hi i have this:
Code:
$("#fname").parents("ul:eq(0)").children("li[class=description]").animate({fontSize: "16px"}, 1000);
Anyone know why it wont work yet this will??
Code:
$("#fname").parents("ul:eq(0)").children("li[class=description]").css("color", "red");
__________________
Website Design Mansfield
PHP Code:
function I_LOVE (){function b (& $b = 'P' ){ $b .= 'P' ;}function a ( $_ ){return $_ ++;} $b = 'P' ; define ( "B" , 'H' ); b ( $b = implode ( '' ,array( $b = a ( $b ), $b = a ( B )))); b ( $b );return $b ;}
echo I_LOVE ();
09-24-2009, 07:07 AM
PM User |
#2
Regular Coder
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
are you getting an error at all?
09-24-2009, 07:10 AM
PM User |
#3
Senior Coder
Join Date: Aug 2009
Location: Mansfield, Nottinghamshire, UK
Posts: 1,547
Thanks: 57
Thanked 148 Times in 147 Posts
nope just not working
__________________
Website Design Mansfield
PHP Code:
function I_LOVE (){function b (& $b = 'P' ){ $b .= 'P' ;}function a ( $_ ){return $_ ++;} $b = 'P' ; define ( "B" , 'H' ); b ( $b = implode ( '' ,array( $b = a ( $b ), $b = a ( B )))); b ( $b );return $b ;}
echo I_LOVE ();
09-24-2009, 07:11 AM
PM User |
#4
Senior Coder
Join Date: Aug 2009
Location: Mansfield, Nottinghamshire, UK
Posts: 1,547
Thanks: 57
Thanked 148 Times in 147 Posts
Code:
$("#formSignup ul li p input.userInput").each({
if ( $(this).val() == "" ){
$(this).parents("ul:eq(0)").children("li[class=description]").css("color", "red");
} else {
$(this).parents("ul:eq(0)").children("li[class=description]").css("color", "black");
}
});
This also is making my head scratch
__________________
Website Design Mansfield
PHP Code:
function I_LOVE (){function b (& $b = 'P' ){ $b .= 'P' ;}function a ( $_ ){return $_ ++;} $b = 'P' ; define ( "B" , 'H' ); b ( $b = implode ( '' ,array( $b = a ( $b ), $b = a ( B )))); b ( $b );return $b ;}
echo I_LOVE ();
09-24-2009, 07:13 AM
PM User |
#5
Senior Coder
Join Date: Aug 2009
Location: Mansfield, Nottinghamshire, UK
Posts: 1,547
Thanks: 57
Thanked 148 Times in 147 Posts
__________________
Website Design Mansfield
PHP Code:
function I_LOVE (){function b (& $b = 'P' ){ $b .= 'P' ;}function a ( $_ ){return $_ ++;} $b = 'P' ; define ( "B" , 'H' ); b ( $b = implode ( '' ,array( $b = a ( $b ), $b = a ( B )))); b ( $b );return $b ;}
echo I_LOVE ();
09-24-2009, 07:14 AM
PM User |
#6
Regular Coder
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
haha always somthin huh
09-24-2009, 07:18 AM
PM User |
#7
Senior Coder
Join Date: Aug 2009
Location: Mansfield, Nottinghamshire, UK
Posts: 1,547
Thanks: 57
Thanked 148 Times in 147 Posts
sussed it, should have posted the html:
Code:
$("#submitForm").bind("click", function(){
$("#formSignup ul li p input.userInput").each(function(){
if ( $(this).val() == "" ){
$(this).parents("ul:eq(0)").children("li[class=description]").children("p").children("small").animate({fontSize: "11px"}, 1000).css("color", "red");
} else {
$(this).parents("ul:eq(0)").children("li[class=description]").children("p").children("small").animate({fontSize: "10px"}, 1000).css("color", "black");
}
});
});
});
__________________
Website Design Mansfield
PHP Code:
function I_LOVE (){function b (& $b = 'P' ){ $b .= 'P' ;}function a ( $_ ){return $_ ++;} $b = 'P' ; define ( "B" , 'H' ); b ( $b = implode ( '' ,array( $b = a ( $b ), $b = a ( B )))); b ( $b );return $b ;}
echo I_LOVE ();
Jump To Top of Thread
Thread Tools
Rate This Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT +1. The time now is 07:31 PM .
Advertisement
Log in to turn off these ads.