Jquery find nearest matching element

后端 未结 4 1757
Happy的楠姐
Happy的楠姐 2020-12-28 11:16

I have a series of rows with columns and I want to select the value of an input field that is in a previous column to the input field (price input)

4条回答
  •  我在风中等你
    2020-12-28 12:00

    var otherInput = $(this).closest('.row').find('.inputQty');
    

    That goes up to a row level, then back down to .inputQty.

提交回复
热议问题