This is probably the choice of the "parent form" that causes the problem.
The function .parent()returns only the immediate parent element, which will not allow you to get a form element if yours is select.modnested in <p>or something like that.
The function .parents()returns all the parents of the element; but the first may not be a form tag. I would try this:
$("select.mod").change(function(){
$(this).parents('form')
.find(':input')
.each(function(i) {
alert(this.name + " = " + i);
});
});
, , , , , , , jQuery...