How can you check that the square is assigned to a div? For example, I have to check that if there is a class of header-link
in a device, then it should alert a message box like this:
$ ( 'Header one'). Click (function () (if ($ (this) .classname == 'header-link') {Warning ('element has a class name already in');} and {$ (this) .addClass ('header- Link ');}});
I put it in classname
is an example, I need to check whether it has been assigned class or No ... (even when jQuery is assigned as you want
$ ('% s')
Comments
Post a Comment