[jQuery] Re: [validate] Require with more then one selector
On Jan 30, 6:39 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > In that I highly recommend just using a custom method. > > See http://docs.jquery.com/Plugins/Validation/Validator/addMethodand > the billingRequired method > here:http://jquery.bassistance.de/validate/demo/marketo/mktSignup.js > > Jörn Actually, experimenting seems to show I can just specify two 'required' arguments, and get the correct behavior. "{required:'#port[value=0]', required: #country[value=]'}" Thanks, though. -Sud.
[jQuery] [validate] Require with more then one selector
Pardon the mixing of comment formats. // must be non-blank - values are digits ... // "Port not found" in previous list - values are strings ... // "Port not found" in previous list - value is a string // "Port not found" AND "Country not found" - how do I require both? Can I do this as a class definition? Sud.
[jQuery] Re: Inline Ui-Datepicker mindate not working as expected
Marc replied - the now-working code is: $(document).ready(function() { $('#deliveryDate').val($.datepicker.formatDate('mm/dd/yy', new Date())); $('#cali').datepicker({ onSelect: function(date) { $('#deliveryDate').val(date); }, changeFirstDay: false, minDate: new Date($('#deliveryDate').val()) }); }); On Dec 13, 3:20 pm, Sudrien <[EMAIL PROTECTED]> wrote: > Th have the following code. $('#cali') is a span, and $ > ('#deliveryDate') is an input, so the calendar is showing up inline. > > $(document).ready(function() { > var starting = new Date(); > $('#cali').datepicker({ > onSelect: function(date) { $('#deliveryDate').val(date); }, > changeFirstDay: false, > minDate: starting }); > $('#deliveryDate').val($.datepicker.formatDate('mm/dd/yy', > starting)); > }); > > I expected this to work as, "select any day in the future, including > today". #deliveryDate shows today's date. The calendar in #cali has > today selected by default - but unselectable (select another day, and > you can't go back to today). > > All I can think of is that the extra time - hours, minues, seconds - > in the date are somehow effecting mindate. > > -Sud.
[jQuery] Inline Ui-Datepicker mindate not working as expected
Th have the following code. $('#cali') is a span, and $ ('#deliveryDate') is an input, so the calendar is showing up inline. $(document).ready(function() { var starting = new Date(); $('#cali').datepicker({ onSelect: function(date) { $('#deliveryDate').val(date); }, changeFirstDay: false, minDate: starting }); $('#deliveryDate').val($.datepicker.formatDate('mm/dd/yy', starting)); }); I expected this to work as, "select any day in the future, including today". #deliveryDate shows today's date. The calendar in #cali has today selected by default - but unselectable (select another day, and you can't go back to today). All I can think of is that the extra time - hours, minues, seconds - in the date are somehow effecting mindate. -Sud.