How do I create a function that adds a specific class to an element and at the same time removes the same class from its other sibling

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

There are five images. If I click on a particular image, the image size increases, but there is a problem that if I click on another image, the previous image does not resize and stays in the state of increase and ruins the order I want

‫أضف إجابة

تصفح
تصفح

مجهول يجيب