[Solved] Finding the closest span with a specific class inside a div
The issue with your current code is that closest() looks at parent elements, yet the span you want to find is a child of a parent’s sibling to the input. To solve your issue traverse to a common parent of both the input and span and use find() from there. Try this: $(“#reimburse_price”).blur(function() { checkNumInput(‘#’ … Read more