Is there any way to create select input like we can do for text input in jquery code below. Below code doesnt work for Select. Any help will be highly appreciated.
counter = 1;
var searchInput = $(' <input/>', {
type: 'text',
placeholder: 'Product Name',
name: 'row['+counter+'][product_name]',
class : 'txtvalue',
id: 'project' + counter
});
var quarterInput = $(' <input/>', {
type: 'select',
value: ('1','2','3'),
name: 'row['+counter+'][quarter]',
class : 'text',
id: 'project-quarter' + counter
});
var hidd = $('<input/>', {
type: 'hidden',
name: 'searchhid' + counter,
id: 'project-id' + counter
});
newTextBoxDiv.append(searchInput).append(" ").append(quarterInput).append(hidd);
newTextBoxDiv.appendTo("#TextBoxesGroup");