Sana Sana
Sana Sana

Reputation: 1205

Apply .ui-datepicker-trigger class on jquery date picker

I am trying to apply css properties on date picker image. This is my code please suggestion any changes,

$("#StartDate").addClass('ui-datepicker-trigger').css('vertical-align', 'middle' , 'margin-bottom' , '0px');

My requirement is, since the css properties is not written in css class, How to run this code in IE8 ?

Upvotes: 0

Views: 820

Answers (1)

ThiefMaster
ThiefMaster

Reputation: 318508

You should read the .css() docs. The proper way to set multiple values is this:

.css({
    'vertical-align': 'middle',
    'margin-bottom': '0px'
});

Upvotes: 3

Related Questions