What I would like to do is to obtain the id of an element that has a different edge, in this case its edge is red, to be able to process it in another method.
Current code:
if ($('#txtNombreP').hasClass('borcolo')) {
alert('El elemento tiene borde rojo');
} else {
alert('El elemento tiene borde blanco');
}
The code above identifies what edge my item has, now that I know what border it has, I would like to obtain the id of that element. I have 20 elements within this window and more in other forms to which this method will be applied, so I do not think it can be done within the if, it would be a lot of code.