close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Date Picker Customization

Thread began 1/21/2011 12:15 am by Bottega23 | Last modified 1/21/2011 11:16 am by Jason Byrnes | 1024 views | 3 replies |

Bottega23

Date Picker Customization

Hello,

I was wondering if there is an easy way to customize the date picker to do 2 things:

1) Only allow specific days of the week to be selected and "grey out" those items that should not be allowed. For example:

Delivery Date: Tues - Saturday (Sun/Mon not available)

2) Check time and only allow today to be selected if time is =< 13:00 and today is allowed day of week.

Thanks!

Garry

Sign in to reply to this post

Jason ByrnesWebAssist

1) Yes, you could modify the date picker code to disable weekends, the date piccek code will look like:

$(function(){
$('#datepicker_1').datepicker({
dateFormat: 'mm/dd/yy',
showAnim: 'show',
onClose: closeDatePicker_datepicker_1
});
});




change it to:

$(function(){
$('#datepicker_1').datepicker({
dateFormat: 'mm/dd/yy',
showAnim: 'show',
onClose: closeDatePicker_datepicker_1,
beforeShowDay: $.datepicker.noWeekends
});
});



to disable weekends

2) No this is not supported in the date picker.

Sign in to reply to this post

Garry Wilmeth

Thanks Jason, would it possible to also close Monday in the date picker?

Sign in to reply to this post

Jason ByrnesWebAssist

not without creating custom coding that is not supported.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...