English 中文(简体)
多种选择
原标题:jQuery Datepicker with multiple options

我试图获得<代码>datepicker,以显示我寄来的日名,但我仍在使用违约值。 是否有东西应该放弃? 我是否应该用单一选择说明确定价值观? 我在大火中没有任何错误。 我的守则如下:

$( #<%= txtDate.ClientID %> ).datepicker({
    dateFormat:  dd/mm/yy ,
    changeMonth: true,
    changeYear: true,
    yearRange: "-50:+10",
    clickInput: true,
    dayNames: <%= DayNames %> ,
    dayNamesMin: <%= DayNamesMin %> ,
    monthNames: <%= MonthNames %> ,
    montNamesShort: <%=MonthNamesShort %>
});

这里的产出:

$(document).ready(function () {
    $( #ctl00_ctl00_ctl00_body_body_CenterColumn_CvPersonalInfoControl_birthDate_txtDate ).datepicker({
            dateFormat:  dd/mm/yy ,
            changeMonth: true,
            changeYear: true,
            yearRange: "-50:+10",
            clickInput: true,
            dayNames: [ Pazartesi ,  Salı ,  Çarşamba ,  Perşembe ,  Cuma ,  Cumartesi ,  Pazar ] ,
            dayNamesMin: [ Pzt ,  Sa ,  Çrş ,  Prş ,  Cu ,  Cmt ,  Pzr ] ,
            monthNames: [ Ocak ,  Şubat ,  Mart ,  Nisan ,  Mayıs ,  Haziran ,  Temmuz ,  Ağustos ,  Eylül ,  Ekim ,  Kasım ,  Aralık ] ,
            monthNamesShort: [ Ock ,  Şbt ,  Mrt ,  Nsn ,  Mys ,  Haz ,  Tem ,  Ağu ,  Eyl ,  Ekm ,  Kas ,  Ara ]
        });
});
最佳回答

您可以尝试:

$( #<%= txtDate.ClientID %> ).datepicker({
    dateFormat:  DD/mm/yy ,
    changeMonth: true,
    changeYear: true,
    yearRange: "-50:+10",
    clickInput: true,
    dayNames: <%= DayNames %> ,    
    monthNames: <%= MonthNames %> ,
    monthNamesShort: <%=MonthNamesShort %>
});
//the DD - day name long 
check the ref: http://docs.jquery.com/UI/Datepicker/formatDate

Hope it will be of some help

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签