开发者

Jquery datePicker Removed selected date class

开发者 https://www.devze.com 2023-04-07 11:40 出处:网络
I want to re开发者_运维百科move class for selected date when form submit button is clicked because when a date have selected I need to reset datePicker without any selected date.

I want to re开发者_运维百科move class for selected date when form submit button is clicked because when a date have selected I need to reset datePicker without any selected date.

I tried

$('.weekday').removeClass('selected');

But it's not working. Thanks.


if you want to set the datepicker value empty then

$('.weekday').val("");


I don't know about you want,but I think you can run this

$('.weekday').val('');

it will remove selected style from your date picker


You can try:

$('.ui-state-default').removeClass('ui-state-highlight');
0

精彩评论

暂无评论...
验证码 换一张
取 消