Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
Getting/setting value from Jquery UI Datepicker returns undefine from chrome extension

I'm using chrome extension to automate my few tasks, one of them is to select the date from datepicker. but i'm unable to perform actions on Jquery UI datepicker by using its methods such as: $(".hasDatepicker").datepicker("setDate", new Date("01/03/2022")); or getting date: $(".hasDatepicker").datepicker("getDate"); i display the result in console and it returns undefine. Inside manifest file, i also included the jquery-ui.js file, here it is:

{
    "manifest_version": 3,
    "name": "Auto Cart",
    "version": "1.0",
    "content_scripts": [
        {
            "matches": [
                "https://www.billetterie-parismusees.paris.fr/*"
            ],
            "js": [
                "jquery.js",
                "jquery-ui.js",
                "content.js"
            ]  
        }
    ],
    "action": {
        "default_popup": "popup.html"
    },
    "permissions": ["storage","activeTab"]
}

Important: I can get and set values of datepicker from console but it doesn't work from content-script.js file. Can anyone pls help me in resolving this issue?

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda