Reputation: 1205
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
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