html jQuery table tr uses each() to traverse to get the content in a row including input By Qinqin Senior

  $("table tr").each(function(){
  var attr =$(this).closest("tr").find('input[name="attr[]"]').val();
  var spec_id =$(this).closest("tr").find('input[name="spec_id[]"]').val();
  var sell_price =$(this).closest("tr").find('input[name="sell_price[]"]').val();
  console.log(attr,spec_id,sell_price);
  });

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326484444&siteId=291194637