ripper234
ripper234

Reputation: 230206

How do I disable the button wrapper for jquery-ui-datepicker?

See this sample page.

The icon I want to be using is this:

alt text

The icon, as shown on the page, looks like this:

alt text

How can I make DatePicker use my original icon without modifications?

Upvotes: 0

Views: 283

Answers (1)

Nick Craver
Nick Craver

Reputation: 630569

You need to set the buttonImageOnly property to true, like this:

$('#datepicker').datepicker({
   showOn: 'button', 
   buttonImageOnly: true,
   buttonImage: 'http://dl.dropbox.com/u/464119/kuzando/datepicker/calendar.png'
});

From the docs:

buttonImageOnly: Set to true to place an image after the field to use as the trigger without it appearing on a button.

Upvotes: 1

Related Questions