Wie kann ich $ ('. Selector'). Flatpickr nicht eine Funktion?Jquery

JQuery-Programmierung
Anonymous
 Wie kann ich $ ('. Selector'). Flatpickr nicht eine Funktion?

Post by Anonymous »

I'm using jquery 3.6 and flatpickr 4.6.9 in my project, but when I try to instantiate using my jquery selector, it gives me the following error:

Uncaught TypeError: $datePlanted.flatpickr is not a function

JQuery

Code: Select all

import $ from 'jquery';
import flatpickr from 'flatpickr';

const $datePlanted = $('.plot-tree-form__date-planted-text')
$datePlanted.flatpickr({
enableTime: false,
dateFormat: 'Y-m-d'
});
< /code>
html < /p>


Date Planted Here



Laut Flatpickr -Dokumentation sollte dies funktionieren.
Wie kann ich dieses Problem lösen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Wie kann ich $ ('. Selector'). Flatpickr nicht eine Funktion?
    by Anonymous » » in Jquery
    0 Replies
    0 Views
    Last post by Anonymous
  • Laravel mit Livewire - Verwenden von Flatpickr für die Datumsspanne
    by Guest » » in Php
    0 Replies
    8 Views
    Last post by Guest
  • JQuery Selector, um ein untergeordnetes Element mit zu finden
    by Anonymous » » in Jquery
    0 Replies
    18 Views
    Last post by Anonymous
  • State Taste Selector Android
    by Anonymous » » in Android
    0 Replies
    6 Views
    Last post by Anonymous
  • State Taste Selector Android
    by Anonymous » » in Android
    0 Replies
    5 Views
    Last post by Anonymous