2
I am programming the system of my TCC and in it I am creating a site that contains two types of ID in the Div container of each page: fundo_index
on the Index and fundo_base
in other pages.
I need to do a check to know which of these Ids exists to thus trigger a function specific only for Index, as I am using Jquery, I searched and found the method.hasClass();
that checks the classes of an element, but I couldn’t find its equivalent for Ids.
I would like to ask you what is this equivalent of this method for Ids and if it doesn’t exist, what is the way to do this verification?
worked here, vlw ae, didn’t think it would be so easy
– Miguel Carigo