[jQuery] using depends method with Validate() plugin

2008-12-02 Thread luke adamis
Hi, I am using the Validate() plugin for various forms and I run into this issue with the depends method on various places. So far I found only two references to dealing with depends: http://docs.jquery.com/Plugins/Validation/validate $(.selector).validate({ rules: { contact: {

[jQuery] Re: using depends method with Validate() plugin

2008-12-02 Thread luke adamis
' } }, Luke On Dec 2, 2008, at 11:44 AM, luke adamis wrote: Hi, I am using the Validate() plugin for various forms and I run into this issue with the depends method on various places. So far I found only two references to dealing with depends: http

[jQuery] Re: using depends method with Validate() plugin

2008-12-02 Thread luke adamis
$(#countrycode).val() == '1'; } Jörn On Tue, Dec 2, 2008 at 8:42 PM, luke adamis [EMAIL PROTECTED] wrote: OK this works: current_password: { minlength: 6, required

[jQuery] Re: using depends method with Validate() plugin

2008-12-03 Thread luke adamis
Is there a reason for this to not work? other_product_interest: { required: #product_interest[0]:checked }, product_interest[] is a list of checkboxes, if user picks 'other' ,

[jQuery] Re: using depends method with Validate() plugin

2008-12-03 Thread luke adamis
it in the rules. Is there any way to do that? L. On Dec 3, 2008, at 11:30 AM, Jörn Zaefferer wrote: I guess you have to escape that ID: jQuery interprets that as element with id product_interest and an attribute named '0'. Jörn On Wed, Dec 3, 2008 at 5:24 PM, luke adamis [EMAIL PROTECTED] wrote

[jQuery] Re: IE problem

2008-12-05 Thread luke adamis
, though. So put up a test page and someone can probably give you some ideas. -Mike From: luke adamis Why isn't tis working in IE? $(document).ready(function(){ //tabber var e = $('.promotion_content').length; var n = Math.floor(Math.random()*e

[jQuery] Re: IE problem

2008-12-05 Thread luke adamis
it duplicates the ids and classes I put into the template. since JQuery relies on classes and ids of DOM elements we get a conflict there. Safari, Firefox are smart enough to deal with the conflict. IE6 and IE7 mess up. L. On Dec 5, 2008, at 10:12 AM, luke adamis wrote: test page

[jQuery] validate plugin date()

2008-12-23 Thread Luke Adamis
hello all, I have a date filed that needs to be validated only for one type of date format: mm/dd/yyy. http://bassistance.de/jquery-plugins/jquery-plugin-validation/ the validate plugin's date() method validates all sorts of date formats. is there a way to restrict that to only one format? do

[jQuery] working with appended elements

2009-01-06 Thread Luke Adamis
first time I am working with append(). If I create an element with append(): $('#box').append('div id=hidemeHide Me/div'); then I need that element to be clickable. $('#hideme').click.function() { $(this).fadeOut(); }; but it is not responding. I assume because it wasn't there when

[jQuery] Re: working with appended elements

2009-01-06 Thread Luke Adamis
never mind livequiery did the trick. L. On Jan 6, 2009, at 11:08 AM, Luke Adamis wrote: first time I am working with append(). If I create an element with append(): $('#box').append('div id=hidemeHide Me/div'); then I need that element to be clickable. $('#hideme').click.function

[jQuery] [validate plugin] contain number

2009-01-15 Thread Luke Adamis
Hello, I need to validate password fields. I got this list of requirements what a password can be, among them: it has to contain numbers. How can I validate if the password contains numbers or not. I thought the built in numbers() method would do it for me. but it seems it requires the