2

我正在实施谷歌浏览器扩展。我已经为此编写了以下代码。

var callback = document.getElementById('callback');
 callback.addEventListener('click', function() {
     datepicker({"readonly":true,"changeYear":true,"changeMonth":true,"dateFormat":"yy-mm-dd","numberOfMonths":3,"required":false});
    });

但上面的代码不起作用。如果有人知道正确的方法,请建议我。

4

1 回答 1

0

As per Arjun's answer:

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

it didnt worked, so I down-graded the jquery-1.9.1.js to lower version and it worked like charm. So change your jquery min version, it will start working.

Degrade the jquery.min file to lower version and enjoy. Tested, its working successfully with 1.8 version :)

于 2013-09-09T11:08:51.193 回答