javascript - jQuery row.find finding all controls but dropdown -


as part of drag , drop option table being used clients, i'm attempting re-name controls in each row when client changes order.the script works intended every control except attempting find drop down shown this fiddle. i'm not sure problem is, below updatenames() script handles renaming controls , re-coloring rows.


function updatenames() {     $('.sorted_table tr').each(function (i, row) {          // reference stuff need first         var $row = $(row),             $remove = $row.find('input[name*="chkremove_"]'),             $list = $row.find('input[name*="dllist_"]'),             $section = $row.find('input[name*="txtsection_"]'),             $name = $row.find('input[name*="txtname_"]'),             $value = $row.find('input[name*="txtvalue_"]'),             $comments = $row.find('input[name*="txtcomments_"]');          //now rename them         $remove.attr('name', "chkremove_" + (i - 1));         $list.attr('name', "dllist_" + (i - 1));         $section.attr('name', "txtsection_" + (i - 1));         $name.attr('name', "txtname_" + (i - 1));         $value.attr('name', "txtvalue_" + (i - 1));         $comments.attr('name', "txtcomments_" + (i - 1));          var rowcss = 'tableinfobody tableinfogray';         if ((i % 2) === 0) {             rowcss = 'tableinfobody';         }         $row.attr("class", rowcss);     }); 

i should note row coloring works.


Comments