www.webdeveloper.com
Results 1 to 4 of 4

Thread: Setting Multiple Options on a Function

  1. #1
    Join Date
    Jan 2005
    Location
    USA
    Posts
    352

    Thumbs down Setting Multiple Options on a Function

    I'm new to jQuery (and most things), so I'm needing some help.

    I'm attempting to use datepicker (with jQueryUI) and I'd like to set both the "dateFormat" and "altFormat" options for it.

    Code:
    $('.date').datepicker({ dateFormat: "mm-dd-yy" });
    This works for setting the dateFormat, yet I'm unsure how to also include the altFormat.

    I've tried added a comma after the dateFormat stuff, didn't work.

    Any help would be GREATLY APPRECIATED.

    Thanks

  2. #2
    Join Date
    Jul 2007
    Posts
    386
    You can check all the options for dateFormat here:
    http://docs.jquery.com/UI/Datepicker/formatDate

  3. #3
    Join Date
    Jan 2005
    Location
    USA
    Posts
    352
    Quote Originally Posted by SparoHawk View Post
    You can check all the options for dateFormat here:
    http://docs.jquery.com/UI/Datepicker/formatDate
    Naw, what I'm really trying to do is add more than just the formatDate option.

  4. #4
    Join Date
    Jul 2007
    Posts
    386
    Its also explained in the documentation:
    http://docs.jquery.com/UI/Datepicker#option-altFormat

    Did you also include the altField? That is where the altFormat will go if specified.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles