I am looking to find out how to place a new selection item in second place in the selection list
Hierarchy:
- first: white element
- second: my new item (there: Add)
- next: my email list
My function:
function classAppend(){
$('#email').append(
$('<option></option>').val('').addClass('new_address_mail').html("Add")
);
}
Does anyone know what an option is?
source
share