How do I add to the control after the loop
Here is the function. How could I speed this up by adding to the control first after the for loop.
function DisplayVessel(voyageArr)
{
for (var i = 0; i < voyageArr.length; i++)
{
$('#DDLVesselName').append($("<option value=" +
voyageArr[i].Vesselid + "></option>").text(voyageArr[i].VesselName));
}
}
//Tony