I am curious to what would be a good practice in getting the closest selected option (value) next to a button. I have came up with two different ways but not sure which one is better.
var find1 = $(this).closest('td').find(':selected').val();
var find2 = $(this).closest('td').children().eq(0).val();
I have created a jfiddle to help http://jsfiddle.net/9kxces0n/3/
If you are curious why I use:
$(document).on('click', '.get-col3-value', function(){});
It is because I am creating rows using an "add row" button and need to be able to register the event. If I did a simple
$(".get-col3-value").click(function(){});
It wouldn't register the click event when creating a row in the table.