I am adding tr's dynamically to a table. I have a chosen dropdown in the second td and an input text field in the first. The chosen dropdown is gumming up the works with using ids and classes. With this code I am able to change the background color of the exact td with the input field I am looking for:
thisObj.closest("tr").children('td:first').css('background-color','#000');
What I am looking to do now is to get the value of the input field from td whose background color is being changed in the line above. I've found code that identifies how to pull the input value from multiple td's but I'm just looking to do one.
Aucun commentaire:
Enregistrer un commentaire