I'm having a problem with trying to find out whether the parent element does not have the element with the specific class like so:
// after clicking on the button inside of the form - get the instance of the parent form
var par = $(this).parent('form');
if(!par.has('warn')) {
// do something
}
Any idea how to achievie it - as has() doesn't seem to find it