Good day!
There are the following elements:
The button ID has a numerical format, from [1..100] and above.
The crux of the matter is that I need to add a class to an element
i to a certain key, namely the one on which the click event.
The function of the following:
function getButton(el) { id = el.id; $().addClass('fa fa-circle-o-notch fa-spin'); }
Please tell me how to access the button with a certain ID so that when clicked, class
addClass('fa fa-circle-o-notch fa-spin') was added to a specific button, but not to all?
Thank you very much!