[jQuery] Re: Scroll so that an element is at the bottom of the viewport

2009-11-18 Thread Rizky
, { >  over:{ top:0.5 }, >  offset:{ top: -$(window).height() / 2 } > > }); > On Sun, Nov 15, 2009 at 10:35 AM, Rizky wrote: > > hi ariel, > > > great plugin here, i'm using it for my next project (if the marketing > > guys could win the pitch). currently it&

[jQuery] Re: Scroll so that an element is at the bottom of the viewport

2009-11-15 Thread Rizky
hi ariel, great plugin here, i'm using it for my next project (if the marketing guys could win the pitch). currently it's still a prototype. i have a question as well. what should i do if i want to scroll to an element and make it appear in the center of the viewport? all elements are absolutely

[jQuery] Re: Customize Error Labels

2009-07-23 Thread Rizky
sweet. thx man.. On Jul 23, 1:10 pm, Jules wrote: > This should work instead of going through all labels. > >         $('form').validate({ >             errorPlacement: function(error, element) { >                 $('label[for="' + $(element).attr('id') + > '"]').addClass('error'); >          

[jQuery] Re: Customize Error Labels

2009-07-22 Thread Rizky
errorPlacement on validate docs. > >     $(document).ready(function() { >         $("form").validate({ >             errorPlacement: function(error, element) { >                 $(element).prev().addClass("error"); >             } >         }); >     }); >

[jQuery] [Validate] Customize Error Labels

2009-07-22 Thread Rizky
Hi, I need help with the Validation plugin. I want to disable the generated error labels and I need to find a way to add the class "error" to existing form labels instead. Currently I don't use it and simply want to add highlighting to the existing fields and labels. My forms already contain fie