2016-03-21 9 views
0

日付ピッカーのアイコンを設定したい私は何度も試してみましたが、できません。日付ピッカーのアイコンを設定したい

はここdocumentation、showOn、buttonImageとbuttonImageOnlyオプションが仕事を見て、私の日付ピッカー機能のデフォルトの日付ピッカーのウィジェット(jQueryUI)について

$(function() { 
$('input').filter('.datepicker').datepicker({ 
    changeMonth: true,  
    changeYear: true, 
    depth: "year", 
    showOn: 'both',  
    buttonImage:'../../ui/image/calender.png', 
    buttonImageOnly: true 
}); 
}); 
+2

どのdatepikerをお使いですか? – madalinivascu

+0

https://jsfiddle.net/dipali_vasani/1z63c9d5/これは –

答えて

0

です。 パスが正しいイメージファイルを指していることを確認してください。

+0

のコメントです。 –

+0

@DipaliVasani私はコメントにリンクを追加するために熱い知らないです。 – mauretto

0

アイコンのパスを確認してください。私はあなたのアイコンのパスが正しくない100%確信している:

$(function() { 
$('input').filter('.datepicker').datepicker({ 
    changeMonth: true,  
    changeYear: true, 
    depth: "year", 
    showOn: 'both',  
    buttonImage:'../../ui/image/calender.png', // Please check it 
    buttonImageOnly: true 
}); 
}); 

../../ui/image/calender.pngは、あなたが(バック現在位置から現在のページを2つのフォルダを移動する必要があり

を意味し、ポジション) "ui"フォルダに移動して "image"フォルダに移動してから、calender.pngを検索してください。

関連する問題