, {
> 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&
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
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');
>
errorPlacement on validate docs.
>
> $(document).ready(function() {
> $("form").validate({
> errorPlacement: function(error, element) {
> $(element).prev().addClass("error");
> }
> });
> });
>
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
5 matches
Mail list logo