use select tags with table sorter plug in and have it default to a given value
问题 I have a table that has drop down boxes to allow the user to select different options. I need to show what the default selection is when the table is loaded. Here is my code so far: //get info for defect dropdown var myselectoptions = ''; for(y=0;y<data.defect2.length; y++) { defect2 = data.defect2[y]; defect3 = defect2.substring(0,30); myselectoptions += '<option value="'+data.defect_id[y]+'">'+defect3+'</option>'; } if(data.isbn2 === null){ $("#inventoryUpdate").append('<tr><td>No Records