I\'m doing some front end development on a hosted e-commerce platform. The system sends a text input for the customer to choose the quantity of items they want to add to the
If you already have an dropdown/select list and you just want to add an item to it from a label/textbox then you can try this :
if ($(textBoxID).val() != '') { $(dropDownID) .append($("") .attr('value', ($(textBoxID).val())) .text($(textBoxID).val())).val($(textBoxID).val()) }