I am using wordpress plugin Product And Custom Post type Dropdown CF7 which allows us to show the products dropdown from Woocommerce. I want to add first option as 'select product'. How can I do that? Please help.
var data = {
id: 1,
text: 'Barn owl'
};
var newOption = new Option(data.text, data.id, false, false);
$('#mySelect2').append(newOption).trigger('change');
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more