简体   繁体   中英

Datepicker not working in Chrome Extension

I am developing a Chrome Extension. I tried the below code for datepicker. But it is not working in extension file. Successfully working in a normal html file.

 <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>jQuery UI Datepicker - Display inline</title>
      <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
      <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
      <link rel="stylesheet" href="/resources/demos/style.css">
      <script>
      $(function() {
        $( "#datepicker" ).datepicker();
      });
      </script>
    </head>
    <body>

    Date: <div id="datepicker"></div>


    </body>
    </html>

Im trying to do the same thing the first thing is that you cant have script in your html file you have to get it from a .js file. as its not allowed to be written in .html for chrome extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM