closest()
used to get the first ancestor element that matches your selector. You need prev() or siblings() here:
var c = $(this).prev().attr('id');
or:
var c = $(this).siblings("#one").attr('id');
since select
is the previous element or sibling of your button in this case