Accessing value of inputs within a div in each()
问题 I have a bit of code that allows a user to add a new phone to a list like so const addPhone = async (phone) => { $('.phone-list').append(` <div class='phone-div'> <table"> <tbody> <tr> <td"> <p> <input class='type' type='text' value='${phone.type}'></input> </p> <p> <input class='detail' type='text' value='${phone.detail}'></input> </p> </td> </tr> </tbody> </table> </div>); }; Each time a user adds a new phone a new phone-div is added tothe list and turns up on screen. Now when the user taps