[jQuery] Re: jQuery Validate (bassistance)

2009-09-26 Thread emmabu...@live.co.uk
hi people, i noticed youre familiar with this plugin :) hi people ive just started playing around with jquery. ive used jqtransform to make my form pretty looking, and have attempted to implement bassistance.de's validation plugin - everything kind of works, apart from the fact that the validat

[jQuery] Re: jQuery Validate (bassistance)

2009-09-26 Thread emmabu...@live.co.uk
hi people - i noticed youre familiar with this plugin :) hi people ive just started playing around with jquery. ive used jqtransform to make my form pretty looking, and have attempted to implement bassistance.de's validation plugin - everything kind of works, apart from the fact that the valida

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread kevin.mccormick
thanks! On Sep 22, 1:09 pm, Michael Geary wrote: > You can simplify this part: > >     if ($('#chkStatus5').is(':checked')){ >         return true; >     } else { >         return false; >     } > > to: > >     return $('#chkStatus5').is(':checked'); > > As you can see, that's almost the same as

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread Michael Geary
You can simplify this part: if ($('#chkStatus5').is(':checked')){ return true; } else { return false; } to: return $('#chkStatus5').is(':checked'); As you can see, that's almost the same as your previous attempt; the only thing missing was the "return". -Mike O

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread kevin.mccormick
Wow I finally got it... updated code here: referrerother: { required: function(element){ if ($('#chkStatus5').is(':checked')){ return true;

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread kevin.mccormick
I'm getting close to finding a way to give a boolean result if the "other" checkbox is selected (id chkStatus5)... still not working though referrerother: { required: function(element){ $('#referrer-chkStatu

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread kevin.mccormick
Im trying to implement this and Im not sure if there is a syntax difference in returning a value of a checkbox vs a dropdown menu. Is (return $("#referrer").val() == 'Other') the proper way to test the value of a checkbox? It certainly works for dropdown menus.. Here is my new code, mimicking the

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread kevin.mccormick
oohh that is just plain wonderful. thank you very much :) On Sep 22, 9:56 am, Loony2nz wrote: > Check out this example: > > http://www.coldfusionjedi.com/index.cfm/2009/2/16/jQuery-Form-Validat... > > On Sep 22, 9:35 am, ripcurlksm wrote: > > > I have a "How did you hear about us?" with a serie

[jQuery] Re: jQuery Validate (bassistance)

2009-09-22 Thread Loony2nz
Check out this example: http://www.coldfusionjedi.com/index.cfm/2009/2/16/jQuery-Form-Validation-with-Selects On Sep 22, 9:35 am, ripcurlksm wrote: > I have a "How did you hear about us?" with a series of checkboxes that > is working great, however there is an option for "Other", where they >