Trying to find previous DOM elements and get input value jquery

look at my code, I am trying to create a table that when a user click update, it will get the first and second input value. I am trying to use prev to find the first two DOM element and get the value, but fail, what should i do, appreciate.