This is true because after enabling js autocomplete, each $ () object now has a specific autocomplete () method (if you want to activate autocomplete for these elements). Your if () just says that this function is not null.
Unfortunately, I donβt have a system where I can check this (I left the laptop at home today), but I believe that autocomplete adds the css class name to the elements it uses. You can search for it.
James curran
source share