I am programming the system of my TCC and in it I am creating a site that contains two types of ID in the container container of each page: fundo_index
in Index and fundo_base
in other pages.
I need to do a check to know which of these IDs exists so to trigger a specific function only for the Index, as I am using JQuery, I searched and found the .hasClass();
method that does this check in the classes of an element, however I could not find the equivalent of it for IDs.
I would like to ask you what is the equivalent of this method for IDs and if it does not exist, what is the way to do this verification?